<html>
<head>
</head>
<body class='hmmessage'><div dir='ltr'>

<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">Hi Enrico,<br><br>attached is a quick patch that implements three new experimental options:<br>--x-waf-max-bearing-error=15<br>--x-waf-max-angle=3<br>--x-waf-max-error-percentage=100<br><br>Meaning:<br>--x-waf-max-bearing-error=15<br>The algo calculates the delta of the displayed baring and the real<br>bearing in OSM. If the delta is larger than this, it tries to correct something.<br>Try values between 10 and 20.<br><br>--x-waf-max-angle=3<br>This is used to detect obsolete points.<br>If the 3 consecutive points (P1,P2,P3) in a line form an angle &lt; x-waf-max-angle,<br>it is a candidate for removal. The point P2 is removed<br>if the distance to the straight line between P1 and P3 is small enough.<br>A higher value means that more points may be removed.<br>Reasonable values are probably between 1 and 5.<br><br>--x-waf-max-error-percentage=100<br>This value is used in the method that decides if the distance to the straight<br>line is small enough. A higher value means more points are removed.<br>Reasonable values are probably between 50 and 200.<br><br>The binary based on r3430 is here:<br><code><a href="http://files.mkgmap.org.uk/download/243/mkgmap.jar" target="_blank">http://files.mkgmap.org.uk/download/243/mkgmap.jar</a><br><br></code><br>If you find better values than the defaults, please let us know. The defaults<br>are a compromize of calculation time and quality.<br><br>Gerd<br><br><br><br><div>&gt; Date: Fri, 30 Jan 2015 01:57:31 -0700<br>&gt; From: e.rossini73@alice.it<br>&gt; To: mkgmap-dev@lists.mkgmap.org.uk<br>&gt; Subject: Re: [mkgmap-dev] FW:  Lines distorted<br>&gt; <br>&gt; ehm, I don't know how to modify the java source and compile my own library...<br>&gt; <br>&gt; <br>&gt; <br>&gt; --<br>&gt; View this message in context: http://gis.19327.n5.nabble.com/Distorted-lines-tp5831842p5831910.html<br>&gt; Sent from the Mkgmap Development mailing list archive at Nabble.com.<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>
                                               </div></body>
</html>