
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