Changeset 7899 in josm


Ignore:
Timestamp:
2014-12-27T19:17:39+01:00 (10 years ago)
Author:
Don-vip
Message:

fix #10223 - false positive for "Missing pedestrian crossing information"

File:
1 edited

Legend:

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

    r7309 r7899  
    8686    public void visit(Node n) {
    8787        if (n.isUsable()) {
    88             if (!n.hasTag("highway", "crossing") && !n.hasTag("crossing", "no") && n.isReferredByWays(2)) {
     88            if (!n.hasTag("crossing", "no")
     89             && !(n.hasKey("crossing") && (n.hasTag("highway", "crossing") || n.hasTag("highway", "traffic_signals")))
     90             && n.isReferredByWays(2)) {
    8991                testMissingPedestrianCrossing(n);
    9092            }
     
    151153
    152154        final HashSet<OsmPrimitive> referrers = new HashSet<>();
    153        
    154         if (way.isClosed()) { 
     155
     156        if (way.isClosed()) {
    155157            // for closed way we need to check all adjacent ways
    156158            for (Node n: way.getNodes()) {
Note: See TracChangeset for help on using the changeset viewer.