Changeset 12864 in josm for trunk/src/org/openstreetmap/josm/data/validation
- Timestamp:
- 2017-09-15T00:06:10+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/validation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/Test.java
r12809 r12864 21 21 import org.openstreetmap.josm.data.osm.Relation; 22 22 import org.openstreetmap.josm.data.osm.Way; 23 import org.openstreetmap.josm.data.osm.search.SearchCompiler.InDataSourceArea; 23 24 import org.openstreetmap.josm.data.osm.search.SearchCompiler.NotOutsideDataSourceArea; 24 25 import org.openstreetmap.josm.data.osm.visitor.OsmPrimitiveVisitor; … … 41 42 42 43 protected static final Predicate<OsmPrimitive> IN_DOWNLOADED_AREA = new NotOutsideDataSourceArea(); 44 protected static final Predicate<OsmPrimitive> IN_DOWNLOADED_AREA_STRICT = new InDataSourceArea(true); 43 45 44 46 /** Name of the test */ -
trunk/src/org/openstreetmap/josm/data/validation/tests/Highways.java
r12312 r12864 95 95 public void visit(Way w) { 96 96 if (w.isUsable()) { 97 if (w.isClosed() && w.hasTag(HIGHWAY, CLASSIFIED_HIGHWAYS) && w.hasTag("junction", "roundabout")) { 97 if (w.isClosed() && w.hasTag(HIGHWAY, CLASSIFIED_HIGHWAYS) && w.hasTag("junction", "roundabout") 98 && IN_DOWNLOADED_AREA_STRICT.test(w)) { 98 99 // TODO: find out how to handle splitted roundabouts (see #12841) 99 100 testWrongRoundabout(w);
Note:
See TracChangeset
for help on using the changeset viewer.