Tricks & Tips: Multiple Polygon Tags
More Tricks
Unfortunately, many polygons are now given 2 key tags, ie both landuse and natural .
Mkgmap only handles one at a time unless you add a 'continue' .
However, adding continue to all polygon tags most likely leads to undesirable effects.
Here is one solution. It checks 2 specific tags: natural and landuse.
You need to doctor the draworder of your polygons in your TYP file to ensure one tag isn't swamped by the other.
Tip:
- add a transparent colour to 'wetlands','grass' etc and give it a high draworder, ie 10
- .In TYPwiz use the 'mesh' filter.
- Create a new polygon for all your natural tags so the 'holes' can be bigger.
Trees in grassland have been tagged as : landuse=forest & natural=grass
Also common:
landuse=meadow & natural=scrub
natural=heath & landuse=forest
heath not showing | heath showing |
# place this code at the beginning of your polygons
if (landuse=* & natural=*) then
# list all your natural tags
# add a continue to enable tagging of landuse
natural=scrub [0x4f resolution 18 continue ]
natural=wood [0x50 resolution 18 continue ]
natural=wetland [0x51 resolution 19 continue]
natural=grass
#etc etc
natural=* {delete natural} # to ensure landuse is tagged
end
# rest of original code which includes landuse=