Changeset 14305 in josm
- Timestamp:
- 2018-10-07T19:42:42+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/UnconnectedWays.java
r14143 r14305 181 181 return map; 182 182 } 183 for (Node en : s.nearbyNodes(mindist)) { 184 if (en == null || !s.highway || !endnodesHighway.contains(en)) { 185 continue; 183 if (s.highway) { 184 for (Node en : s.nearbyNodes(mindist)) { 185 if (en == null || !endnodesHighway.contains(en)) { 186 continue; 187 } 188 if (en.hasTag(HIGHWAY, "turning_circle", "bus_stop") 189 || en.hasTag("amenity", "parking_entrance") 190 || en.hasTag(RAILWAY, "buffer_stop") 191 || en.isKeyTrue("noexit") 192 || en.hasKey("entrance", "barrier")) { 193 continue; 194 } 195 // to handle intersections of 't' shapes and similar 196 if (en.isConnectedTo(s.w.getNodes(), 3 /* hops */, null)) { 197 continue; 198 } 199 map.put(en, s.w); 186 200 } 187 if (en.hasTag(HIGHWAY, "turning_circle", "bus_stop")188 || en.hasTag("amenity", "parking_entrance")189 || en.hasTag(RAILWAY, "buffer_stop")190 || en.isKeyTrue("noexit")191 || en.hasKey("entrance", "barrier")) {192 continue;193 }194 // to handle intersections of 't' shapes and similar195 if (en.isConnectedTo(s.w.getNodes(), 3 /* hops */, null)) {196 continue;197 }198 map.put(en, s.w);199 201 } 200 202 } … … 453 455 && !w.hasKey("addr:interpolation") 454 456 // similarly for public transport platforms, tree rows 455 && !w.hasTag(HIGHWAY, "platform") && !w.hasTag(RAILWAY, "platform" ) && !w.hasTag("natural", "tree_row")457 && !w.hasTag(HIGHWAY, "platform") && !w.hasTag(RAILWAY, "platform", "platform_edge") && !w.hasTag("natural", "tree_row") 456 458 ) { 457 459 ways.addAll(getWaySegments(w));
Note:
See TracChangeset
for help on using the changeset viewer.