Changeset 34911 in osm for applications/editors/josm/plugins
- Timestamp:
- 2019-03-06T22:18:45+01:00 (5 years ago)
- Location:
- applications/editors/josm/plugins/opendata
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/ShpReader.java
r34907 r34911 44 44 import org.openstreetmap.josm.data.osm.OsmPrimitive; 45 45 import org.openstreetmap.josm.data.osm.Relation; 46 import org.openstreetmap.josm.data.osm.Way; 46 47 import org.openstreetmap.josm.gui.MainApplication; 47 48 import org.openstreetmap.josm.gui.progress.ProgressMonitor; … … 162 163 r = createMultipolygon(); 163 164 } 165 Way w = createOrGetWay(p.getExteriorRing()); 164 166 if (r != null) { 165 addWayToMp(r, "outer", createOrGetWay(p.getExteriorRing()));167 addWayToMp(r, "outer", w); 166 168 for (int j = 0; j < p.getNumInteriorRing(); j++) { 167 169 addWayToMp(r, "inner", createOrGetWay(p.getInteriorRingN(j))); -
applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/geographic/ShpReaderTest.java
r34898 r34911 90 90 91 91 /** 92 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/1 2843">#12843</a>92 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/13843">#13843</a> 93 93 * @throws Exception if an error occurs during reading 94 94 */ 95 95 @Test 96 public void testTicket1 2843() throws Exception {97 File file = new File(TestUtils.getRegressionDataFile(1 2843, "test.shp"));96 public void testTicket13843() throws Exception { 97 File file = new File(TestUtils.getRegressionDataFile(13843, "test.shp")); 98 98 try (InputStream is = new FileInputStream(file)) { 99 99 Collection<Way> ways = ShpReader.parseDataSet(is, file, null, null).getWays();
Note:
See TracChangeset
for help on using the changeset viewer.