<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi WanMil,<br><br>up to now I found these reasons for problems:<br>1) one error in the branch: via coords were replaced without updating<br>the corrresponding restrictions and the hash map<br>2) "no_u_turn" restrictions were not added <br>if from-way and to-way are equal. They are evaluated to be valid, but <br>I don't know if they really make sense? <br>3) restrictions are added to the restrictions hash map even if the via coord is <br>not contained in the bounding box.<br><br>4) restrictions that have a from-way or to-way which <br>is not added with a routable type or not at all,<br>e.g. way <a href="http://www.openstreetmap.org/way/225540783" target="_blank">http://www.openstreetmap.org/way/225540783</a><br>has no tags but is part of three restriction relations.<br>Another example:<br><a href="http://www.openstreetmap.org/relation/2880411" target="_blank">http://www.openstreetmap.org/relation/2880411</a><br>refers to ways that are tagged lane=tertiary<br>and the default style ignores them.<br><br>In high-prec-coords branch r3003 I've fixed 1) to 3), please <br>check again.<br><br>Gerd<br><br><br><br><div>> Date: Mon, 3 Feb 2014 13:01:40 -0800<br>> From: gpetermann_muenchen@hotmail.com<br>> To: mkgmap-dev@lists.mkgmap.org.uk<br>> Subject: Re: [mkgmap-dev] Problem with turn restriction<br>> <br>> WanMil wrote<br>> >> I want to make a small statistic why restriction relations become<br>> >> invalid. Maybe the problem is so seldom that it's not worthy...<br>> > <br>> > I have made a short stat with the high-prec branch:<br>> > There are around 850 relations that are valid <br>> > (RestrictionRelation.isValid() == true) after loading but that are not <br>> > valid when the StyledConverter calls <br>> > RestrictionRelations.convertRelation(MapCollector ...).<br>> > So it seems to me as if the problem is greater than expected.<br>> <br>> Yes, sounds too much. The only good case that I can think of<br>> is that the relation is saved by splitter because one of the<br>> related ways has at least one point within the boundary, but <br>> another part of the relation is outside of the boundary.<br>> If the via node is within the tile boundary we should be able <br>> to create the restriction. <br>> <br>> Gerd<br>> <br>> <br>> <br>> --<br>> View this message in context: http://gis.19327.n5.nabble.com/Problem-with-turn-restriction-tp5795049p5795167.html<br>> Sent from the Mkgmap Development mailing list archive at Nabble.com.<br>> _______________________________________________<br>> mkgmap-dev mailing list<br>> mkgmap-dev@lists.mkgmap.org.uk<br>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br></div>                                            </div></body>
</html>