- Timestamp:
- 2014-10-22T12:25:23+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/WayConnectedToArea.java
r6792 r7644 71 71 return; 72 72 } else if (isArea(p)) { 73 add Error(w, wayNode, p);73 addPossibleError(w, wayNode, p, p); 74 74 } else { 75 75 for (OsmPrimitive r : p.getReferrers()) { … … 77 77 && r.hasTag("type", "multipolygon") 78 78 && isArea(r)) { 79 add Error(w, wayNode, p);79 addPossibleError(w, wayNode, p, r); 80 80 break; 81 81 } … … 89 89 } 90 90 91 private void addError(Way w, Node wayNode, OsmPrimitive p) { 91 private void addPossibleError(Way w, Node wayNode, OsmPrimitive p, OsmPrimitive area) { 92 // Avoid "legal" cases (see #10655) 93 if (w.hasKey("highway") && wayNode.hasTag("leisure", "slipway") && area.hasTag("natural", "water")) { 94 return; 95 } 92 96 errors.add(new TestError(this, Severity.WARNING, 93 97 tr("Way terminates on Area"), 2301,
Note:
See TracChangeset
for help on using the changeset viewer.