Ticket #17529: 17529_patch.diff
| File 17529_patch.diff, 1.1 KB (added by , 7 years ago) |
|---|
-
src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/ShpReader.java
154 154 OsmPrimitive op = null; 155 155 Geometry g = gc.getGeometryN(i); 156 156 if (g instanceof Polygon) { 157 // TODO: Split this section between Polygon and MultiPolygon. 157 158 Relation r = (Relation) op; 158 159 Polygon p = (Polygon) g; 159 160 // Do not create relation if there's only one polygon without interior ring … … 169 170 addWayToMp(r, "inner", createOrGetWay(p.getInteriorRingN(j))); 170 171 } 171 172 } 173 op = r != null ? r : w; 172 174 } else if (g instanceof LineString) { 173 175 op = createOrGetWay((LineString) g); 174 176 } else if (g instanceof Point) {
