Changeset 18323 in josm for trunk/src/org


Ignore:
Timestamp:
2021-11-12T11:23:59+01:00 (3 years ago)
Author:
GerdP
Message:

fix #21541: false positive: crossing railways

  • treat railway=halt similar to railway=yard
File:
1 edited

Legend:

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

    r17896 r18323  
    126126            if (isWaterArea(w1) && isWaterArea(w2))
    127127                return true; // handled by mapcss tests
    128             if (w1.hasKey(RAILWAY) && w2.hasKey(RAILWAY) && w1.hasTag(RAILWAY, "yard") != w2.hasTag(RAILWAY, "yard")) {
    129                 return true; // see #20089
    130             }
     128            if (w1.hasKey(RAILWAY) && w2.hasKey(RAILWAY) && (w1.hasTag(RAILWAY, "yard") != w2.hasTag(RAILWAY, "yard")
     129                    || w1.hasTag(RAILWAY, "halt") != w2.hasTag(RAILWAY, "halt")))
     130                return true;  // see #20089, #21541
    131131            return (w1.hasTag(WATERWAY, "river", "stream", "canal", "drain", "ditch") && isWaterArea(w2))
    132132                    || (w2.hasTag(WATERWAY, "river", "stream", "canal", "drain", "ditch") && isWaterArea(w1));
Note: See TracChangeset for help on using the changeset viewer.