Changeset 4704 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2011-12-23T14:44:32+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/WayConnectedToArea.java
r4682 r4704 35 35 36 36 private void testForError(Way w, Node wayNode, OsmPrimitive p) { 37 if ( ElemStyles.hasAreaElemStyle(p, false)) {37 if (isArea(p)) { 38 38 addError(w, wayNode, p); 39 39 } else { … … 41 41 if (r instanceof Relation 42 42 && r.hasTag("type", "multipolygon") 43 && ElemStyles.hasAreaElemStyle(r, false)) {43 && isArea(r)) { 44 44 addError(w, wayNode, p); 45 45 break; … … 47 47 } 48 48 } 49 } 50 51 private boolean isArea(OsmPrimitive p) { 52 return (p.hasKey("landuse") || p.hasKey("natural")) 53 && ElemStyles.hasAreaElemStyle(p, false); 49 54 } 50 55
Note:
See TracChangeset
for help on using the changeset viewer.