Changeset 11155 in josm


Ignore:
Timestamp:
2016-10-23T22:21:34+02:00 (3 years ago)
Author:
Klumbumbus
Message:

fix #13841 - Exclude railway=razed from crossing ways test

File:
1 edited

Legend:

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

    r11136 r11155  
    5959                    && ((w.hasKey(HIGHWAY) && !w.hasTag(HIGHWAY, "rest_area", "services"))
    6060                    || w.hasKey(WATERWAY)
    61                     || (w.hasKey(RAILWAY) && !isSubwayOrTram(w))
     61                    || (w.hasKey(RAILWAY) && !isSubwayOrTramOrRazed(w))
    6262                    || isCoastline(w)
    6363                    || isBuilding(w));
     
    7474                return true;
    7575            }
    76             if (isSubwayOrTram(w2)) {
     76            if (isSubwayOrTramOrRazed(w2)) {
    7777                return true;
    7878            }
     
    240240    }
    241241
    242     static boolean isSubwayOrTram(OsmPrimitive w) {
    243         return w.hasTag(RAILWAY, "subway", "tram");
     242    static boolean isSubwayOrTramOrRazed(OsmPrimitive w) {
     243        return w.hasTag(RAILWAY, "subway", "tram", "razed");
    244244    }
    245245
Note: See TracChangeset for help on using the changeset viewer.