logo separator

[mkgmap-dev] low-res-opt branch: error message from ShapeSplitter for self-intersecting multipolygon

From Ticker Berkin rwb-mkgmap at jagit.co.uk on Sun Jun 13 05:34:50 BST 2021

Hi Gerd

Sorry about that.

Coord.distanceInHighPrecSquared() handles wrapping of -180 to +180 and
so considered the start/end points of a polygon as close (which they
physically are) but not in the context of flat-earth clipping.

I had trouble working out what was going on at first because JOSM
doesn't handle coords at +-90,+-180.

New patch attached. Will respond to other email later.

Ticker

On Sat, 2021-06-12 at 13:07 +0000, Gerd Petermann wrote:
> Hi Ticker,
> 
> your patch seems to introduce a new bug. It returns an empty list of
> shapes when I call
> ShapeSplitter.clipToBounds(largest.getPoints(), src.getBounds(),
> null)
> with largest equal to Planet for the attached (empty) tile.
> 
> Compile attached tile with --precomp-sea=sea.zip --improve-overview
> 
> Gerd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: splitShapeFix_10_lowRes.patch
Type: text/x-patch
Size: 22616 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20210613/147535c2/attachment-0001.bin>


More information about the mkgmap-dev mailing list