logo separator

[mkgmap-dev] Problem with turn restriction

From Gerd Petermann gpetermann_muenchen at hotmail.com on Tue Feb 4 08:41:04 GMT 2014

Hi WanMil,

up to now I found these reasons for problems:
1) one error in the branch: via coords were replaced without updating
the corrresponding restrictions and the hash map
2) "no_u_turn" restrictions were not added 
if from-way and to-way are equal. They are evaluated to be valid, but 
I don't know if they really make sense? 
3) restrictions are added to the restrictions hash map even if the via coord is 
not contained in the bounding box.

4) restrictions that have a from-way or to-way which 
is not added with a routable type or not at all,
e.g. way http://www.openstreetmap.org/way/225540783
has no tags but is part of three restriction relations.
Another example:
refers to ways that are tagged lane=tertiary
and the default style ignores them.

In high-prec-coords branch r3003 I've fixed 1) to 3), please 
check again.


> Date: Mon, 3 Feb 2014 13:01:40 -0800
> From: gpetermann_muenchen at hotmail.com
> To: mkgmap-dev at lists.mkgmap.org.uk
> Subject: Re: [mkgmap-dev] Problem with turn restriction
> WanMil wrote
> >> I want to make a small statistic why restriction relations become
> >> invalid. Maybe the problem is so seldom that it's not worthy...
> > 
> > I have made a short stat with the high-prec branch:
> > There are around 850 relations that are valid 
> > (RestrictionRelation.isValid() == true) after loading but that are not 
> > valid when the StyledConverter calls 
> > RestrictionRelations.convertRelation(MapCollector ...).
> > So it seems to me as if the problem is greater than expected.
> Yes, sounds too much. The only good case that I can think of
> is that the relation is saved by splitter because one of the
> related ways has at least one point within the boundary, but 
> another part of the relation is outside of the boundary.
> If the via node is within the tile boundary we should be able 
> to create the restriction. 
> Gerd
> --
> View this message in context: http://gis.19327.n5.nabble.com/Problem-with-turn-restriction-tp5795049p5795167.html
> Sent from the Mkgmap Development mailing list archive at Nabble.com.
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20140204/a56ccd22/attachment.html>

More information about the mkgmap-dev mailing list