logo separator

[mkgmap-dev] [PATCH v1] Decide in style file if a way is closed automatically

From Steve Ratcliffe steve at parabola.me.uk on Sat Oct 27 12:50:56 BST 2012

Hi

> Well, if this doesnt take too much calculation time, please go ahead :-)

OK here is a first attempt.

The parsers are modified to save a flag on the way if it is actually 
closed. It also aggressively refuses to make anything into a polygon 
that is not closed.

So there should be errors as a result of splitter. But on the other hand 
there may be more due to OSM data errors. Will have to investigate this 
and adjust if necessary.

Attached is the before and after results of my test and the patch.

A precompiled jar is at:  http://files.mkgmap.org.uk/download/72/mkgmap.jar

..Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: existing.png
Type: image/png
Size: 2790 bytes
Desc: not available
Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20121027/0d15f090/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: with-patch.png
Type: image/png
Size: 2598 bytes
Desc: not available
Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20121027/0d15f090/attachment-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: closed_polygon_detection.patch
Type: text/x-patch
Size: 8600 bytes
Desc: not available
Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20121027/0d15f090/attachment.bin 


More information about the mkgmap-dev mailing list