logo separator

[mkgmap-dev] dissapearing roads

From Gerd Petermann gpetermann_muenchen at hotmail.com on Mon Mar 24 19:38:53 GMT 2014

Hi all, 

attached is a patch with a modified DouglasPeuckerFilter to 
solve the problem with "disappearing roads". 
I see only small differences in the maps, so I hope it doesn't introduce any side effects.

The problem occured when - due the rounding of coordinates to low resolutions -
a line is converted to a straight line with a spike.
This is not directly related to mergeLines, but is more likely to happen with it.

If I hear no complains I'll commit that patch on wednesday. 
Compiled binary based on trunk r3118:


From: gpetermann_muenchen at hotmail.com
To: mkgmap-dev at lists.mkgmap.org.uk
Date: Mon, 24 Mar 2014 19:50:52 +0100
Subject: Re: [mkgmap-dev] dissapearing roads

Hi Andrzej,

> I think you could simply disable merging at lower resolution, since ways 
> are already merged at layer 0. But if you want to get additional merging 
> then still processing angle would be beneficial.
dont't think so :mkgmap starts to write the lowest resolution,  
ends with the highest. For each resolution we can see different combinations
of lines.

Anyway, the new algo seems to work, I'll post a patch soon.


mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20140324/7c3c1b76/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: disappearing-roads-v1.patch
Type: application/octet-stream
Size: 3119 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20140324/7c3c1b76/attachment.obj>

More information about the mkgmap-dev mailing list