logo separator

[mkgmap-dev] [PATCH] fix for "pink line of death" bug in routing

From Johann Gail johann.gail at gmx.de on Sun Feb 15 13:20:40 GMT 2009

>>> Although this patch helped for "small routes" (say < 20km), when I
>>> tried a much longer route (90km or so) it went wrong near the end.
>>>
>>> So back to the drawing board, but at least that's part of the problem
>>> sorted if not the whole problem.
>>>       
>> But let's look for related problems. In particular, are the signs of  
>> offsets encoded correctly? Negative offsets might explain why  
>> occasionally, the route goes off in the opposite direction.
>>     
>
> Actually, I think the fix really did solve the major problem.
>
> Further investigation shows that the badness I am seeing with my
> "longer route" is related to the number of nodes in a particular way.
>
> If I limit the number of nodes to no more than 16, the routing works
> without going wacky. If I have some larger number of nodes (actual
> limit TBD but more than 16), the gps gets it wrong - it actually looked
> like it routed to the far end of the way rather than the near end.
>
> So, if you use the patch from yesterday and limit the number of nodes in
> a way, it's looking pretty good (for the moment!)
>
>
>   
May that have something to do with the faulty loop at generating the 
bits (r892)? Has anyone an test case at hand, where he can try again 
with longer segments?

While playing around with the bits I accendentially compiled a version 
in which all bits was cleared. In this case the pink line goes wacky 
from the first node.



More information about the mkgmap-dev mailing list