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-boun...@lists.mkgmap.org.uk> im Auftrag von Ticker 
Berkin <rwb-mkg...@jagit.co.uk>
Gesendet: Dienstag, 31. Januar 2017 16:26:41
An: mkgmap-dev@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@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Attachment: mp_cut_2017-01-31.patch
Description: mp_cut_2017-01-31.patch

_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to