Changeset 7273 in josm for trunk/src/org


Ignore:
Timestamp:
2014-06-28T02:41:04+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #10204 - restrict roundabout test to classified highways

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/Highways.java

    r7258 r7273  
    9999    public void visit(Way w) {
    100100        if (w.isUsable()) {
    101             if (w.hasKey("highway") && w.hasKey("junction") && "roundabout".equals(w.get("junction"))) {
     101            if (w.hasKey("highway") && CLASSIFIED_HIGHWAYS.contains(w.get("highway")) && w.hasKey("junction") && "roundabout".equals(w.get("junction"))) {
    102102                testWrongRoundabout(w);
    103103            }
     
    224224        }
    225225    }
    226    
     226
    227227    private void testSourceMaxspeed(OsmPrimitive p, boolean testContextHighway) {
    228228        String value = p.get("source:maxspeed");
Note: See TracChangeset for help on using the changeset viewer.