Changeset 6386 in josm
- Timestamp:
- 2013-11-15T02:00:02+01:00 (11 years ago)
- 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 124 124 List<Node> nodes = w.getNodes(); 125 125 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 } 128 131 } 129 132 } -
trunk/src/org/openstreetmap/josm/data/validation/tests/UnclosedWays.java
r6240 r6386 68 68 } 69 69 test = w.get("sport"); 70 if (test != null && !test.equals("water_slide") ) {70 if (test != null && !test.equals("water_slide") && !test.equals("climbing")) { 71 71 set(1104, marktr("sport type {0}"), test); 72 72 }
Note:
See TracChangeset
for help on using the changeset viewer.