[mkgmap-dev] Possible If then bug
From Gerd Petermann gpetermann_muenchen at hotmail.com on Thu May 30 06:49:53 BST 2019
Hi Nick, not sure what your mean with "gets included". I've copied your rules to the top of the polygons file in the default style and I see no output from echotags. On the other hand, the polygon https://www.openstreetmap.org/way/339552356 is (correctly) included in the map. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von nwillink <osm at pinns.co.uk> Gesendet: Donnerstag, 30. Mai 2019 07:33 An: mkgmap-dev at lists.mkgmap.org.uk Betreff: [mkgmap-dev] Possible If then bug Hi 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 end This works well, however ... The following url contains one natural=wood and area=yes (sic) https://www.openstreetmap.org/export#map=17/50.69541/-3.53819 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? r Nick -- Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html _______________________________________________ mkgmap-dev mailing list mkgmap-dev at lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
- Previous message: [mkgmap-dev] Possible If then bug
- Next message: [mkgmap-dev] Possible If then bug
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list