Changeset 12864 in josm for trunk


Ignore:
Timestamp:
2017-09-15T00:06:10+02:00 (7 years ago)
Author:
Don-vip
Message:

fix #15256 - limit roundabout validation test to waynodes all in downloaded area

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  
    2121import org.openstreetmap.josm.data.osm.Relation;
    2222import org.openstreetmap.josm.data.osm.Way;
     23import org.openstreetmap.josm.data.osm.search.SearchCompiler.InDataSourceArea;
    2324import org.openstreetmap.josm.data.osm.search.SearchCompiler.NotOutsideDataSourceArea;
    2425import org.openstreetmap.josm.data.osm.visitor.OsmPrimitiveVisitor;
     
    4142
    4243    protected static final Predicate<OsmPrimitive> IN_DOWNLOADED_AREA = new NotOutsideDataSourceArea();
     44    protected static final Predicate<OsmPrimitive> IN_DOWNLOADED_AREA_STRICT = new InDataSourceArea(true);
    4345
    4446    /** Name of the test */
  • trunk/src/org/openstreetmap/josm/data/validation/tests/Highways.java

    r12312 r12864  
    9595    public void visit(Way w) {
    9696        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)) {
    9899                // TODO: find out how to handle splitted roundabouts (see #12841)
    99100                testWrongRoundabout(w);
Note: See TracChangeset for help on using the changeset viewer.