logo separator

[mkgmap-dev] FW: Lines distorted

From Gerd Petermann gpetermann_muenchen at hotmail.com on Fri Jan 30 09:54:09 GMT 2015

Hi Enrico,

I forgot to mention that the options are not used for shapes, only for lines.

Gerd


From: gpetermann_muenchen at hotmail.com
To: mkgmap-dev at lists.mkgmap.org.uk
Date: Fri, 30 Jan 2015 10:47:07 +0100
Subject: Re: [mkgmap-dev] FW:  Lines distorted







Hi Enrico,

attached is a quick patch that implements three new experimental options:
--x-waf-max-bearing-error=15
--x-waf-max-angle=3
--x-waf-max-error-percentage=100

Meaning:
--x-waf-max-bearing-error=15
The algo calculates the delta of the displayed baring and the real
bearing in OSM. If the delta is larger than this, it tries to correct something.
Try values between 10 and 20.

--x-waf-max-angle=3
This is used to detect obsolete points.
If the 3 consecutive points (P1,P2,P3) in a line form an angle < x-waf-max-angle,
it is a candidate for removal. The point P2 is removed
if the distance to the straight line between P1 and P3 is small enough.
A higher value means that more points may be removed.
Reasonable values are probably between 1 and 5.

--x-waf-max-error-percentage=100
This value is used in the method that decides if the distance to the straight
line is small enough. A higher value means more points are removed.
Reasonable values are probably between 50 and 200.

The binary based on r3430 is here:
http://files.mkgmap.org.uk/download/243/mkgmap.jar


If you find better values than the defaults, please let us know. The defaults
are a compromize of calculation time and quality.

Gerd



> Date: Fri, 30 Jan 2015 01:57:31 -0700
> From: e.rossini73 at alice.it
> To: mkgmap-dev at lists.mkgmap.org.uk
> Subject: Re: [mkgmap-dev] FW:  Lines distorted
> 
> ehm, I don't know how to modify the java source and compile my own library...
> 
> 
> 
> --
> View this message in context: http://gis.19327.n5.nabble.com/Distorted-lines-tp5831842p5831910.html
> Sent from the Mkgmap Development mailing list archive at Nabble.com.
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

 		 	   		  

_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150130/ae07230c/attachment-0001.html>


More information about the mkgmap-dev mailing list