logo separator

[mkgmap-dev] Possible If then bug

From nwillink osm at pinns.co.uk on Thu May 30 06:33:10 BST 2019


I've noticed some unexpected behaviour when using 'if then'

Today, in osm, a polygon can have multiple 'land describing' tags  ie
landuse=grass & natural=wood or landuse=forest and natural=heath etc

To ensure both get parsed I use the following:

if (landuse=* & natural=*) then
# parse natural ; use continue ; delete natural
natural=wood {echotags "wood & transparency"}[0x1101c resolution 18 continue
] #50
# add more natural=
# at end of list delete natural so it doesn't get plotted lower down
natural=* {delete natural}
# continue parsing landuse
This works well, however ...

The following url contains one natural=wood and area=yes (sic)

There is no mention of a landuse  and yet this wood gets included asif it
has a  landuse= something tag

Is this because of the area tag?


Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html

More information about the mkgmap-dev mailing list