logo separator

[mkgmap-dev] [Patch V1] Subdivision width is 36627 at 3230916/1236133

From GerdP gpetermann_muenchen at hotmail.com on Sat Apr 28 19:11:14 BST 2012

Hi all,

attached is a patch that fixes a few problems with r2272

1) When the initial area is created, the area bounds were only updated when
a point was added. 
Lines and shapes were added without updating the area bounds. The patch
changes this.

2) The splitMaxSize() method did used the calculated bounds, not the bounds
of the elements.
Therefore, it did not split the area when the number of elements was small.

3) The LineSizeSplitterFilter did not split a line to parts that are smaller
than maxSize, it always added 
the point that made the bbox of the line too large. If this last point is
far away from the others, the 
bbox is far too large. 
The patch makes sure that a line is split into parts that are small enough.

Regarding the problem described by WanMils picture: This is not yet solved
with this patch.
I have to create some test cases to analyse this also.


View this message in context: http://gis.19327.n5.nabble.com/Patch-V1-Subdivision-width-is-36627-at-3230916-1236133-tp5672934p5672934.html
Sent from the Mkgmap Development mailing list archive at Nabble.com.

More information about the mkgmap-dev mailing list