Changeset 6518 in josm for trunk/src


Ignore:
Timestamp:
2013-12-24T10:16:30+01:00 (10 years ago)
Author:
simon04
Message:

see #3531 - validator: unconnected ways: ignore highway/railway=platform

File:
1 edited

Legend:

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

    r6515 r6518  
    127127                        continue;
    128128                    }
    129                     if ("turning_circle".equals(en.get("highway"))
    130                             || "bus_stop".equals(en.get("highway"))
    131                             || "buffer_stop".equals(en.get("railway"))
     129                    if (en.hasTag("highway", "turning_circle", "bus_stop")
     130                            || en.hasTag("railway", "buffer_stop")
    132131                            || OsmUtils.isTrue(en.get("noexit"))
    133132                            || en.hasKey("barrier")) {
     
    350349        if (!w.isUsable()
    351350                || w.hasKey("barrier")
    352                 || "cliff".equals(w.get("natural")))
     351                || w.hasTag("natural", "cliff"))
    353352            return ret;
    354353
     
    375374    @Override
    376375    public void visit(Way w) {
    377         // Do not consider empty ways and addr:interpolation ways as they are not physical features and most of the time
    378         // very near the associated highway, which is perfectly normal, see #9332
    379         if (w.getNodesCount() > 0 && !w.hasKey("addr:interpolation")) {
     376        if (w.getNodesCount() > 0 // do not consider empty ways
     377                && !w.hasKey("addr:interpolation") // ignore addr:interpolation ways as they are not physical features and most of the time very near the associated highway, which is perfectly normal, see #9332
     378                && !w.hasTag("highway", "platform") && !w.hasTag("railway", "platform") // similarly for public transport platforms
     379                ) {
    380380            ways.addAll(getWaySegments(w));
    381381            QuadBuckets<Node> set = endnodes;
Note: See TracChangeset for help on using the changeset viewer.