logo separator

[mkgmap-dev] FW: Lines distorted

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



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

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150130/33db22c1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: options-for-WrongAngleFixer-v1.patch
Type: application/octet-stream
Size: 8728 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150130/33db22c1/attachment.obj>


More information about the mkgmap-dev mailing list