[mkgmap-dev] Proposal: Multipolygon handling and linebasedmultipolygons
From Markus markus_g at bigpond.com on Sun Sep 12 09:27:08 BST 2010
Sorry about the unfinished message. Sounds like a good idea to add the mkgmap:styleusage=line and mkgmap:styleusage=polygon. I also like charlies ideas. Not adding linear tags to the created polygons, As these I think should only be lines anyway. But an extra tag added also would allow filtering in the style if any liner ways are missed being excluded within the multipolygon algorithm. Regards, Markus_g -----Original Message----- From: mkgmap-dev-bounces at lists.mkgmap.org.uk [mailto:mkgmap-dev-bounces at lists.mkgmap.org.uk] On Behalf Of WanMil Sent: Saturday, 11 September 2010 9:23 PM To: Development list for mkgmap Subject: [mkgmap-dev] Proposal: Multipolygon handling and line basedmultipolygons The latest question about the boundary handling of multipolygons encouraged me to start another try to fix the problem in mkgmap (please read http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2010q3/008976.html). Now I have another idea. The problem is: The resulting multipolygons usually are used as polygons. But some should only be used for the line processing (country borders). The multipolygon algorithm creates artificial polygons which are annoying if you want to use them as lines: you get artificial borders inside your country. My solution: The mp algorithm adds a tag mkgmap:styleusage=polygon to all artificially created polygons. Additionally it duplicates all input ways of the multipolygon, tag them with the mp tags and add mkgmap:styleusage=line. The style handling now applies line rules only if the tag mkgmap:styleusage=line is set or if it is completely unset. The same with polygons. With this solution the style writer can decide on its own if he wants to use the polygon information or the line information of the multipolygon. 2nd advantage: the style writer need not to change any existing styles as this new feature is handled internally in mkgmap. 3rd advantage: the line information of properly tagged multipolygons could also be used if the multipolygon is not completely contained in the tile. This if often the case for country boundaries. The --process-boundary-relations option of mkgmap would become needless. I am not an expert in styles so maybe I have missed something?!? What do you think about my idea? WanMil _______________________________________________ mkgmap-dev mailing list mkgmap-dev at lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev at lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
- Previous message: [mkgmap-dev] Proposal: Multipolygon handling and line basedmultipolygons
- Next message: [mkgmap-dev] Commit: r1679: Structure is in place to extract all the code that isn't related to reading XML
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list