- Timestamp:
- 2024-04-06T10:03:50+02:00 (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/Highways.java
r19029 r19034 311 311 private void testDifferentLayers(Node connection) { 312 312 List<Way> ways = connection.getParentWays(); 313 ways.removeIf(w -> !w.hasTag("highway") || w.hasTag("highway", "steps")); 313 ways.removeIf(w -> !w.hasTag("highway") || w.hasTag("highway", "steps") || isSpecialArea(w)); 314 314 if (ways.size() < 2 || ways.stream().noneMatch(w -> w.hasKey("layer"))) 315 315 return; … … 339 339 340 340 /** 341 * Check if way is an area on a layer above or below 0. 342 * @param w the way 343 * @return true if way is an area on a layer above or below 0 344 */ 345 private static boolean isSpecialArea(Way w) { 346 return w.hasAreaTags() && OsmUtils.getLayer(w) != null; 347 } 348 349 /** 341 350 * Check if there are at least two neighbouring nodes on the given ways. 342 351 * If so, the connection node can be considered to be at a specific layer, else it marks the end of such a layer
Note:
See TracChangeset
for help on using the changeset viewer.