Changeset 6648 in josm for trunk/src/org
- Timestamp:
- 2014-01-06T18:44:12+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/validation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java
r6643 r6648 90 90 CrossingWays.Ways.class, // ID 601 .. 699 91 91 CrossingWays.Boundaries.class, // ID 601 .. 699 92 CrossingWays.NaturalOrLanduse.class, // ID 601 .. 69993 92 CrossingWays.Barrier.class, // ID 601 .. 699 94 93 SimilarNamedWays.class, // ID 701 .. 799 -
trunk/src/org/openstreetmap/josm/data/validation/tests/CrossingWays.java
r6635 r6648 114 114 String createMessage(Way w1, Way w2) { 115 115 return tr("Crossing boundaries"); 116 }117 118 @Override119 public void visit(Relation r) {120 for (Way w : r.getMemberPrimitives(Way.class)) {121 visit(w);122 }123 }124 }125 126 public static class NaturalOrLanduse extends CrossingWays {127 128 @Override129 public boolean isPrimitiveUsable(OsmPrimitive p) {130 return super.isPrimitiveUsable(p) && (p.hasKey("natural") || p.hasKey("landuse"))131 && (!(p instanceof Relation) || (((Relation) p).isMultipolygon() && !((Relation) p).hasIncompleteMembers()));132 }133 134 @Override135 boolean ignoreWaySegmentCombination(Way w1, Way w2) {136 return false;137 }138 139 @Override140 String createMessage(Way w1, Way w2) {141 return tr("Crossing natural/landuse");142 116 } 143 117
Note:
See TracChangeset
for help on using the changeset viewer.