Changeset 35984 in osm for applications/editors/josm/plugins/opendata
- Timestamp:
- 2022-06-16T23:41:29+02:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/GeographicReader.java
r35976 r35984 181 181 Way tempWay = new Way(); 182 182 if (ls != null) { 183 final List<Node> nodes = new ArrayList<>(ls.getNumPoints()); 183 184 // Build list of nodes 184 185 for (int i = 0; i < ls.getNumPoints(); i++) { 185 186 try { 186 tempWay.addNode(createOrGetNode(ls.getPointN(i)));187 nodes.add(createOrGetNode(ls.getPointN(i))); 187 188 } catch (TransformException | IllegalArgumentException e) { 188 189 Logging.error("Exception for " + ls + ": " + e.getClass().getName() + ": " + e.getMessage()); 189 190 } 190 191 } 192 tempWay.setNodes(nodes); 191 193 // Find possible duplicated ways 192 194 if (tempWay.getNodesCount() > 0) {
Note:
See TracChangeset
for help on using the changeset viewer.