[mkgmap-dev] [PATCH v1] Decide in style file if a way is closed automatically
From WanMil wmgcnfg at web.de on Fri Oct 26 14:59:33 BST 2012
> >> So if I understand it right it can be rendered in two ways? >> >> In my lines style, add a rule >> waterway=canal & mkgmap:wayclosed=true {add natural=water} >> >> Or >> >> Use the continue in the line style after each waterway that needs to >> be processed >> and in the polygon style add a rule: >> >> waterway=canal & mkgmap:autoclosing=false [0x3c resolution 22] >> >> >> I used the last one and got a few severe styledconverter warnings: Use >> line rules only for way# Yes, the patch prints out the results for *all* ways with log level SEVERE. This should enable you to check manually which rules are used for which way. "Use line rules only..." means that only the lines style file is used for this way. "Use both rules for..." means that the lines plus the polygon style file is used. > > > A few more tests: > > The first method, > adding natural=water to waterway=canal & mkgmap:wayclosed=true in my line style didn't work. > > Only the last method (mkgmap:autoclosing=false in my polygons style) worked. > > And btw I got not just a few warnings, they were a lot, it looked like those warnings were printed > for every single highway (even when I didnt process them, I just tested a map with only water styles) Ok, I should have explained that more in detail. As far as I have understood you want to distinguish in your lines file if a way is closed (use continue statement) or a way is not closed but will automatically be closed by mkgmap (do not use the continue statement). So your line rules will be: waterway=canal & natural!=water & mkgmap:autoclosing!=true [0x1f resolution 23 continue] waterway=canal & natural!=water & mkgmap:autoclosing=true [0x1f resolution 23] WanMil
- Previous message: [mkgmap-dev] [PATCH v1] Decide in style file if a way is closed automatically
- Next message: [mkgmap-dev] [PATCH v1] Decide in style file if a way is closed automatically
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list