Changeset 6386 in josm for trunk/src/org


Ignore:
Timestamp:
2013-11-15T02:00:02+01:00 (8 years ago)
Author:
Don-vip
Message:

fix #9291 - validator: do not warn for unclosed ways and sport=climbing

Location:
trunk/src/org/openstreetmap/josm/data/validation/tests
Files:
2 edited

Legend:

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

    r6305 r6386  
    124124            List<Node> nodes = w.getNodes();
    125125            if (nodes.size()<1) return; // fix zero nodes bug
    126             errors.add(new TestError(this, Severity.WARNING, tr("Area style way is not closed"), NOT_CLOSED,
    127                     Collections.singletonList(w), Arrays.asList(nodes.get(0), nodes.get(nodes.size() - 1))));
     126            // Fix #9291 - Do not raise warning for sport=climbing + natural=cliff
     127            if (!(w.hasTag("sport", "climbing") && w.hasTag("natural", "cliff"))) {
     128                errors.add(new TestError(this, Severity.WARNING, tr("Area style way is not closed"), NOT_CLOSED,
     129                        Collections.singletonList(w), Arrays.asList(nodes.get(0), nodes.get(nodes.size() - 1))));
     130            }
    128131        }
    129132    }
  • trunk/src/org/openstreetmap/josm/data/validation/tests/UnclosedWays.java

    r6240 r6386  
    6868        }
    6969        test = w.get("sport");
    70         if (test != null && !test.equals("water_slide")) {
     70        if (test != null && !test.equals("water_slide") && !test.equals("climbing")) {
    7171            set(1104, marktr("sport type {0}"), test);
    7272        }
Note: See TracChangeset for help on using the changeset viewer.