logo separator

[mkgmap-dev] Adaptable paths for input and output files

From Steve Ratcliffe steve at parabola.me.uk on Thu Jul 22 22:20:52 BST 2010

Hi

> I reviewed the corresponding mkgmap files again, heading to implement
> getOutputDir(). This approach would create a central place where
>
> - the directory is read or set to DEFAULT_DIR
> - the pathname is tested for presence
> - the directory is created (if not existing)
>
> But it has some downsides too:
> - The above 3 actions are executed for each call of getOutputDir().

That's not really a problem as it is only called a few times.

> - CommandArgs is not easily accessible from classes like DEM.java or
> MapMaker.java (createMap needs a pathname)

I'd just do DEM separately.  And pass in output dir to createMap like 
you did.

..Steve



More information about the mkgmap-dev mailing list