logo separator

[mkgmap-dev] evaluation of boolean options

From Axel Herold herold at snafu.de on Wed Nov 26 12:19:05 GMT 2014

Gerd Petermann schrieb (26/11/14 -- 11:17):

> [...]
> driveOnLeft = props.getProperty("drive-on-left") != null;
> [vs.]
> linkPOIsToWays = props.getProperty("link-pois-to-ways", false);
> I think we should always use the latter method. Do you agree?

Hi Gerd,

definitly. The first solution only makes sense if the parameter doesn't 
accept a value at all (i.e. if it is a switch with an implied value of 
/true/ only).

Viele Grüße,

More information about the mkgmap-dev mailing list