I have attached that patch to limit polygon creation to closed ways.
It's untested and I assume there are some unwanted effects at tile
borders. Please check and if you (and others) find it usefull it can be
committed.
WanMil
Moin,
I think the problem is not the multipolygon, but that some of the outer ways are
tagged with surface=sand. These tags are not considered for the multipolygon,
but for these ways mkgmap creates single surface=sand polygons.
But if you change your polygon style from
surface=sand [0x1b resolution 20]
to
surface=sand& natural!=coastline [0x1b resolution 20]
this shouldn't happen any more.
Just for a try: What happens, if you remove the surface=sand lines from your
polygon styles completely?
And one other thing: There was once a patch, which limited the polygon creation
to closed ways. Does anybody know, what happened to this patch? I really liked
it.
Gruss
Torsten
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Index: src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java
===================================================================
--- src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java (revision 1773)
+++ src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java (working copy)
@@ -283,7 +283,7 @@
preConvertRules(way);
Rule rules;
- if ("polyline".equals(way.getTag("mkgmap:stylefilter")))
+ if ("polyline".equals(way.getTag("mkgmap:stylefilter")) || way.isClosed() == false)
rules = lineRules;
else if ("polygon".equals(way.getTag("mkgmap:stylefilter")))
rules = polygonRules;
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev