logo separator

[mkgmap-dev] Wrong Douglas-Peucker implementation?

From Gerd Petermann gpetermann_muenchen at hotmail.com on Thu Jun 10 09:32:09 BST 2021

Hi Ticker,

you are right, JOSM is wrong. Simplify attached example with 10m tolerance.

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Gerd Petermann <gpetermann_muenchen at hotmail.com>
Gesendet: Donnerstag, 10. Juni 2021 10:14
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] Wrong Douglas-Peucker implementation?

Hi Ticker,

cannot follow. When start and end are close the first iteration will find the most distant point and continue with the two intervals.

Do you have an example *.osm file that shows how JOSM will "reduce a very long line to a very short line"?

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Ticker Berkin <rwb-mkgmap at jagit.co.uk>
Gesendet: Donnerstag, 10. Juni 2021 10:07
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] Wrong Douglas-Peucker implementation?

Hi

Firstly, the algo for DP when the start & end points are close but
other points are more distant should be considered - maybe preserving
the most distant points from the start & end or the points on the
bounding box.

DP using distance to line-through-points could reduce a very long line
to a very short line if all the points are aligned. So, should stick
with distance to line-segment

Ticker

_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________
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: bad-dp.osm
Type: application/octet-stream
Size: 537 bytes
Desc: bad-dp.osm
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20210610/579fd0c9/attachment.obj>


More information about the mkgmap-dev mailing list