Felix,
> Thanks for that patch... It does remove the bug, but all relations seem
> to get dropped by using this patch too. So not an ideal solution -:)
>
> BTW before using this patch, relations like cycleroutes would even show
> up when all ways were dropped due to multipolygon outer...
OK - try this new version:
diff --git a/src/uk/me/parabola/mkgmap/reader/osm/MultiPolygonRelation.java
b/src/uk/me/parabola/mkgmap/reader/osm/MultiPolygonRelation.java
index e2f3c64..0ff5659 100644
--- a/src/uk/me/parabola/mkgmap/reader/osm/MultiPolygonRelation.java
+++ b/src/uk/me/parabola/mkgmap/reader/osm/MultiPolygonRelation.java
@@ -35,7 +35,7 @@ public class MultiPolygonRelation extends Relation {
String value = pairs.getValue();
if (value != null && pairs.getKey() instanceof Way) {
- Way way = (Way) pairs.getKey();
+ Way way = ((Way)pairs.getKey()).duplicate();
if (value.equals("outer")){
outers.add(way);
} else if (value.equals("inner")){
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev