
22 Jul
2010
22 Jul
'10
10:20 p.m.
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