Hi programmers,

the evaluation of boolean options in mkgmap is a bit confusing.
It is possible to specify e.g. 
--drive-on-left 
or
--drive-on-left=true
or
--drive-on-left=false
or
--drive-on-left=any-value

In the current code both all have the same effect, because
the evaluation is done like this:
driveOnLeft = props.getProperty("drive-on-left") != null; 

On the other hand, 
--keep-going
and 
--keep-going=false 
do not have the same effect, and that is true for most
boolean options, because typically we use this kind of evaluation:
linkPOIsToWays = props.getProperty("link-pois-to-ways", false); 

I think we should always use the latter method. Do you agree?

Gerd

                                          
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to