logo separator

[mkgmap-dev] [PATCH] looped way patch for nod branch

From Bernhard Heibler bernhard at heibler.de on Sat Feb 14 10:32:54 GMT 2009

Hi,

it looks like the looped way check doesn't find all self intersection 
ways. It just checks if some waypoint is the same like the last way 
point. It misses loops somewhere in the middle of the way. This results 
in route calculation hangups on the nuvi.

Here comes a patch for the nod branch that fixes the problem. The new 
function should also work with multiple loops in a way. The check for 
the two point loops needs a closer look. For now we only check if there 
are more then 2 points in the way. I have tried a alternate way by 
checking the distance between the intersection points to be greater the 
1 (j-pIdx>1). This will produce some more loop warnings. In one case I 
was not able to see the reason for the warning so I commented the 
alternate check out for now.

Berni.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mkgmap_loopedway_R881_nod.patch
Url: http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20090214/924f1510/attachment.pl 


More information about the mkgmap-dev mailing list