<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>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></body>
</html>