logo separator

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

From Gerd Petermann gpetermann_muenchen at hotmail.com on Sat Jun 12 14:07:48 BST 2021

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

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Gerd Petermann <gpetermann_muenchen at hotmail.com>
Gesendet: Samstag, 12. Juni 2021 10:56
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] low-res-opt branch: error message from ShapeSplitter for self-intersecting multipolygon

Hi Ticker,

the code is getting more complex with each patch and I don't fully understand why because the unit tests never changed.

I doubt that a warning message like "Possible ambiguous balloon allocation at ..." will help anyone except you ;)

I am not sure if you are wasting your time here. I've almost dropped the idea that ShapeMergeFilter could merge to the max, so I wonder in what situation you face those degenerated polygons?
If the only "normal" source is the joinWays() algo in MultipolygonRelation I fully agree that we should change that first.
We just have to decide which version we use: trunk or the faster-mp branch or the low-res-opt branch.

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Ticker Berkin <rwb-mkgmap at jagit.co.uk>
Gesendet: Freitag, 11. Juni 2021 16:11
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] low-res-opt branch: error message from ShapeSplitter for self-intersecting multipolygon

Hi Gerd

I've improved ShapeSplitter so it can cope with more cases when there
are multiple lines at the same point on the cut-line. Any problems will
generate a single log.error, with reasons as log.warn and more
information as log.info and gpx traces if log.debugEnabled()

Ticker
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 65340065.osm.pbf
Type: application/octet-stream
Size: 107 bytes
Desc: 65340065.osm.pbf
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20210612/d28c9d98/attachment.obj>


More information about the mkgmap-dev mailing list