logo separator

[mkgmap-dev] Commit: r1596: Stop loops in ways being trashed by the short arc removal process.

From svn commit svn at mkgmap.org.uk on Fri Mar 5 19:40:42 GMT 2010

Version 1596 was commited by markb on 2010-03-05 19:40:42 +0000 (Fri, 05 Mar 2010) 

Stop loops in ways being trashed by the short arc removal process.

Previously, when two (directly connected) nodes were merged because they
were so close as to be indistinguishable all the points between them were
trashed. That's OK for ways that go directly from one node to the other but
if the way formed a loop (e.g. a contour line), removing all the points
was the wrong thing to do.

So now, nodes are not merged (and the points between them are not trashed)
if the length of the arc between the nodes is greater than the minimum
arc length.

Also, reduced code nesting through the use of more "continue" statements.


More information about the mkgmap-dev mailing list