Changeset 17313 in osm for applications/editors/josm
- Timestamp:
- 2009-08-28T11:22:08+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/CrossingWays.java
r16435 r17313 44 44 { 45 45 super(tr("Crossing ways."), 46 tr("This test checks if two roads, railways or waterways crosses in the same layer, but are not connected by a node."));46 tr("This test checks if two roads, railways, waterways or buildings crosses in the same layer, but are not connected by a node.")); 47 47 } 48 48 … … 74 74 String railway1 = w.get("railway"); 75 75 boolean isSubway1 = railway1 != null && railway1.equals("subway"); 76 if( w.get("highway") == null && w.get("waterway") == null && (railway1 == null || isSubway1) && !isCoastline1) 76 boolean isBuilding = false; 77 if(w.get("building") != null) 78 isBuilding = true; 79 80 if( w.get("highway") == null && w.get("waterway") == null && (railway1 == null || isSubway1) && !isCoastline1 && !isBuilding) 77 81 return; 78 82 … … 116 120 117 121 errors.add(new TestError(this, Severity.WARNING, 118 tr("Crossing ways"), CROSSING_WAYS, prims, highlight));122 isBuilding ? tr("Crossing buildings") : tr("Crossing ways"), CROSSING_WAYS, prims, highlight)); 119 123 ways_seen.put(prims, highlight); 120 124 }
Note:
See TracChangeset
for help on using the changeset viewer.