
Hi, I see that the latest merge lines changes are deforming long straight lines (like railways) into zig zagged lines at lower zoomlevels (resolution <22). For instance this straight railroad http://www.openstreetmap.org/browse/way/89630797 See the differences between the image left (mkgmap-overview2-r2564.jar) and right (mkgmap-overview2-r2590.jar). If I zoom in the jagged zigzag lines disappear at resolution 22 and become straight as it should be. In the older mkgmap versions they remain straight. I always have used --merge-lines in my settings.

Hi Minko, I am surprised about this effect. I think the main difference betwen merge-lines in r2564 and r2590 is that r2560 used it only for res < 22, but r2590 uses it also for res <= 24. So, you should not see any difference for res < 22. Anyway, the zig-zag is not ok, I'll try to find out what goes wrong. Gerd Minko-2 wrote
Hi, I see that the latest merge lines changes are deforming long straight lines (like railways) into zig zagged lines at lower zoomlevels (resolution <22). For instance this straight railroad http://www.openstreetmap.org/browse/way/89630797
See the differences between the image left (mkgmap-overview2-r2564.jar) and right (mkgmap-overview2-r2590.jar).
If I zoom in the jagged zigzag lines disappear at resolution 22 and become straight as it should be. In the older mkgmap versions they remain straight. I always have used --merge-lines in my settings.
_______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
mergelines.jpg (32K) <http://gis.19327.n5.nabble.com/attachment/5759816/0/mergelines.jpg>
-- View this message in context: http://gis.19327.n5.nabble.com/straight-lines-are-deformed-tp5759816p5759821... Sent from the Mkgmap Development mailing list archive at Nabble.com.

Hi Minko, The zig zag effect looks like the remove-short-arcs function: Some points are moved. I don't see why this would not also happen in r2564. Please check: 1) Are you able to reproduce this problem with exactly the same input files and parms? 2) Did you apply the overlayed_lines_v1.patch to one of the programs? Gerd Minko-2 wrote
Hi, I see that the latest merge lines changes are deforming long straight lines (like railways) into zig zagged lines at lower zoomlevels (resolution <22). For instance this straight railroad http://www.openstreetmap.org/browse/way/89630797
See the differences between the image left (mkgmap-overview2-r2564.jar) and right (mkgmap-overview2-r2590.jar).
If I zoom in the jagged zigzag lines disappear at resolution 22 and become straight as it should be. In the older mkgmap versions they remain straight. I always have used --merge-lines in my settings.
_______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
mergelines.jpg (32K) <http://gis.19327.n5.nabble.com/attachment/5759816/0/mergelines.jpg>
-- View this message in context: http://gis.19327.n5.nabble.com/straight-lines-are-deformed-tp5759816p5759860... Sent from the Mkgmap Development mailing list archive at Nabble.com.

Gerd wrote:
Please check: 1) Are you able to reproduce this problem with exactly the same input files and parms?
Ah...thanks Gerd for pointing me this. In my test map I used reduce-point-density=1 and in my regular map without zigzag lines I didnt use this option. So this option caused the jagged lines, not the different mkgmap versions. Without this option set, the lines are straight :-)

Hi Minko, I see. Probably the removeShortArcsByMergingNodes() methods moves some of the points so that the straight line gets a zig-zag line. With reduce-point-density=1 the zig-zag is kept, with the default reduce-point-density=2.6 the line is straightened in the DouglasPeuckerFilter. Gerd Minko-2 wrote
Gerd wrote:
Please check: 1) Are you able to reproduce this problem with exactly the same input files and parms?
Ah...thanks Gerd for pointing me this. In my test map I used reduce-point-density=1 and in my regular map without zigzag lines I didnt use this option. So this option caused the jagged lines, not the different mkgmap versions. Without this option set, the lines are straight :-)
_______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
-- View this message in context: http://gis.19327.n5.nabble.com/straight-lines-are-deformed-tp5759816p5759881... Sent from the Mkgmap Development mailing list archive at Nabble.com.
participants (2)
-
GerdP
-
Minko