Changeset 17382 in josm


Ignore:
Timestamp:
2020-12-01T19:07:34+01:00 (7 weeks ago)
Author:
GerdP
Message:

fix #20174: Exclude administrative borders, especially national administrative borders from "very long segment"

  • exclude ways with boundary=* from test LongSegment
File:
1 edited

Legend:

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

    r16192 r17382  
    8787
    8888    private boolean ignoreWay(Way w) {
    89         return visitedWays.contains(w) || w.hasTag("route", "ferry") || w.hasTag("bay", "fjord") || w.hasTag("natural", "strait");
     89        return w.hasKey("boundary") || w.hasTag("route", "ferry") || w.hasTag("bay", "fjord")
     90                || w.hasTag("natural", "strait") || visitedWays.contains(w);
    9091    }
    9192
Note: See TracChangeset for help on using the changeset viewer.