Changeset 8346 in josm for trunk/src/org/openstreetmap/josm/data/validation/tests/UnconnectedWays.java
- Timestamp:
- 2015-05-11T13:34:53+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/UnconnectedWays.java
r8285 r8346 137 137 private Set<MyWaySegment> ways; 138 138 private QuadBuckets<Node> endnodes; // nodes at end of way 139 private QuadBuckets<Node> endnodes _highway; // nodes at end of way139 private QuadBuckets<Node> endnodesHighway; // nodes at end of way 140 140 private QuadBuckets<Node> middlenodes; // nodes in middle of way 141 141 private Set<Node> othernodes; // nodes appearing at least twice … … 159 159 ways = new HashSet<>(); 160 160 endnodes = new QuadBuckets<>(); 161 endnodes _highway = new QuadBuckets<>();161 endnodesHighway = new QuadBuckets<>(); 162 162 middlenodes = new QuadBuckets<>(); 163 163 othernodes = new HashSet<>(); … … 176 176 } 177 177 for (Node en : s.nearbyNodes(mindist)) { 178 if (en == null || !s.highway || !endnodes _highway.contains(en)) {178 if (en == null || !s.highway || !endnodesHighway.contains(en)) { 179 179 continue; 180 180 } … … 209 209 continue; 210 210 } 211 if (endnodes _highway.contains(en) && !s.highway && !s.w.concernsArea()) {211 if (endnodesHighway.contains(en) && !s.highway && !s.w.concernsArea()) { 212 212 map.put(en, s.w); 213 213 } else if (endnodes.contains(en) && !s.w.concernsArea()) { … … 278 278 ways = null; 279 279 endnodes = null; 280 endnodes _highway = null;280 endnodesHighway = null; 281 281 middlenodes = null; 282 282 othernodes = null; … … 389 389 nearbyNodeCache = null; 390 390 List<LatLon> bounds = this.getBounds(dist); 391 List<Node> found_nodes = endnodes _highway.search(new BBox(bounds.get(0), bounds.get(1)));391 List<Node> found_nodes = endnodesHighway.search(new BBox(bounds.get(0), bounds.get(1))); 392 392 found_nodes.addAll(endnodes.search(new BBox(bounds.get(0), bounds.get(1)))); 393 393 … … 448 448 QuadBuckets<Node> set = endnodes; 449 449 if (w.hasKey("highway") || w.hasKey("railway")) { 450 set = endnodes _highway;450 set = endnodesHighway; 451 451 } 452 452 addNode(w.firstNode(), set); … … 458 458 boolean m = middlenodes.contains(n); 459 459 boolean e = endnodes.contains(n); 460 boolean eh = endnodes _highway.contains(n);460 boolean eh = endnodesHighway.contains(n); 461 461 boolean o = othernodes.contains(n); 462 462 if (!m && !e && !o && !eh) { … … 467 467 endnodes.remove(n); 468 468 } else if (eh) { 469 endnodes _highway.remove(n);469 endnodesHighway.remove(n); 470 470 } else { 471 471 middlenodes.remove(n);
Note:
See TracChangeset
for help on using the changeset viewer.
