<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>in the branch the problem occurs if the way is so short that<br>the two end points are highPrecEqual(). This is very unlikely,<br>as we talk about <= 4 cm here. <br>The problem probably only occurs with ways close to the tile<br>boundary that are clipped. I don't know if we can save a route <br>restriction when the to-node or from-node lies outside of the boundary.<br><br>Gerd<br><br><div>> Date: Mon, 3 Feb 2014 18:35:27 +0100<br>> From: wmgcnfg@web.de<br>> To: mkgmap-dev@lists.mkgmap.org.uk<br>> Subject: Re: [mkgmap-dev] Problem with turn restriction<br>> <br>> > Hi,<br>> ><br>> > GerdP wrote<br>> >> So, I will first check where the way segement gets lost.<br>> ><br>> > well, this is quite special, and I am not sure where to fix it.<br>> ><br>> > The input file contains no bbox, so mkgmap calculates<br>> > it (using 24 bit resolution). Later, the way -47698<br>> > is clipped against this bbox using high precision,<br>> > and in high prec two points are outside of the calculated<br>> > bbox.<br>> ><br>> > In r3001 I'v fixed that by enlarging the calculated bbox,<br>> > but I still have to check that this also works<br>> > when the bbox is calculated by the tile splitter.<br>> ><br>> > Gerd<br>> ><br>> <br>> Hi Gerd,<br>> <br>> uups, I wanted to add bounds information but obviously I missed that and <br>> you got and unintended second test case ;-)<br>> <br>> I am thinking how to fix the problem with the very short way and the <br>> relation. Do you think it is possible to detect that the short way <br>> consists of two points with identical Garmin coords. In this case it <br>> might be possible to change the restriction in such a way that the ways <br>> connected to the short way are used in the restriction instead.<br>> <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>> WanMil<br>> <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>