<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 Steve,<br><br>the major error was caused by a last minute change, another one by wrong masking.<br>Please check attached v2 of the patch. I still see error messages regarding ratio and <br>bearing, but they may be caused by the different precisions.<br>How sure are you about these threshold values in NodCheck?<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; double v = 30.0;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int calcRatio = (int) Math.round(v * direct / path) &amp; 0x1f;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (calcRatio &gt; 26)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; calcRatio = 0;<br><br>Gerd<br><br><div><hr id="stopSpelling">From: gpetermann_muenchen@hotmail.com<br>To: mkgmap-dev@lists.mkgmap.org.uk<br>Date: Wed, 12 Feb 2014 14:39:21 +0100<br>Subject: Re: [mkgmap-dev] [Patch v1] curve bytes<br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir="ltr">Hi Steve,<br><br>yes,&nbsp; I just found this as well. The remaining errors all have ratio = 7, looking at this now.<br><br>Gerd<br><br><div>&gt; Date: Wed, 12 Feb 2014 13:37:43 +0000<br>&gt; From: steve@parabola.me.uk<br>&gt; To: mkgmap-dev@lists.mkgmap.org.uk<br>&gt; Subject: Re: [mkgmap-dev] [Patch v1] curve bytes<br>&gt; <br>&gt; On 12/02/14 10:46, Gerd Petermann wrote:<br>&gt; &gt; @@ -80,22 +88,27 @@<br>&gt; &gt;                   this.roadDef = roadDef;<br>&gt; &gt;                   this.source = source;<br>&gt; &gt;                   this.dest = dest;<br>&gt; &gt; -                this.initialHeading = initialHeading;<br>&gt; &gt; -                this.finalHeading = finalHeading;<br>&gt; &gt; -                this.length = convertMeters(length);<br>&gt; &gt; +                this.initialHeading = (float) initialBearing;<br>&gt; &gt; +                this.finalHeading = (float) finalBearing;<br>&gt; &gt; +                this.directHeading = (float) directBearing;<br>&gt; &gt; +                this.length = convertMeters(length);<br>&gt; &gt;                   this.curveEnabled = curveEnabled;<br>&gt; &gt;                   this.pointsHash = pointsHash;<br>&gt; &gt; +                int encodedDirectLength = convertMeters(source.getCoord().distance(dest.getCoord()));<br>&gt; &gt; +                <br>&gt; &gt; +                lengthRatio = (byte) ((int)Math.round(32.0 * encodedDirectLength / length) &amp; 0x1f);<br>&gt; <br>&gt; This (above) should use this.length, not length<br>&gt;                 <br>&gt; &gt; +                haveCurve = curveEnabled &amp;&amp; lengthRatio &gt; 0;<br>&gt; &gt;           }<br>&gt; <br>&gt; That fix makes leaves me with just a small number of ratio errors.<br>&gt; <br>&gt; ..Steve<br>&gt; _______________________________________________<br>&gt; mkgmap-dev mailing list<br>&gt; mkgmap-dev@lists.mkgmap.org.uk<br>&gt; http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br></div>                                               </div>
<br>_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</div>                                               </div></body>
</html>