[mkgmap-dev] Multipolygon-Relation checks in mkgmap
From Gerd Petermann GPetermann_muenchen at hotmail.com on Tue Jan 31 15:41:25 GMT 2017
Hi Ticker, thanks, will look again later. I am working on a patch for the MultiPolygonCutter. It works without java.awt.geom.Area, the basic idea is to connect shapes where they are close to each other. I've tried that in 2012, maybe I get it working now. One problem that I've noticed: The code in ShapeSplitter seems to consider some shapes as self-intersecting when the connected inner ways are clockwise (or not clockwise, not sure which one causes trouble). I assume you coded this because the shapes produced by java.awt.geom.Area are like that, outer shape is one direction and inner shapes are in the other direction. I have some problems with this behaviour, is it needed ? For now I found a work around by reversing the ways so that they are ordered. Attached is a patch with what I coded so far, open problems are mp-rels at tile boundaries and performance. Be careful, the code contains lots of GPXCreator statements and other debug code. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Ticker Berkin <rwb-mkgmap at jagit.co.uk> Gesendet: Dienstag, 31. Januar 2017 16:26:41 An: mkgmap-dev at lists.mkgmap.org.uk Betreff: Re: [mkgmap-dev] Multipolygon-Relation checks in mkgmap Hi Gerd I've think I've finished making all the changes I want to do at the moment - It seems to work nicely. Sometime can you merge the branch back if you are happy with it. Thanks Ticker _______________________________________________ mkgmap-dev mailing list mkgmap-dev at lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev -------------- next part -------------- A non-text attachment was scrubbed... Name: mp_cut_2017-01-31.patch Type: application/x-download Size: 43334 bytes Desc: mp_cut_2017-01-31.patch URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20170131/e759df78/attachment-0001.bin>
- Previous message: [mkgmap-dev] Multipolygon-Relation checks in mkgmap
- Next message: [mkgmap-dev] Multipolygon-Relation checks in mkgmap
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list