Changeset 17023 in josm
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/corrector/ReverseWayNoTagCorrector.java
r16939 r17023 58 58 if (isDirectional) { 59 59 final boolean cannotBeCorrected = ReverseWayTagCorrector.getTagCorrections(tag).isEmpty(); 60 if (cannotBeCorrected) { 60 61 if (cannotBeCorrected && !way.isKeyTrue("two_sided")) { 62 // two_sided=yes is a special (documented) barrier=city_wall attribute, see #197140 61 63 collection.add(tag); 62 64 } -
trunk/test/unit/org/openstreetmap/josm/actions/corrector/ReverseWayNoTagCorrectorTest.java
r14256 r17023 7 7 import org.junit.Test; 8 8 import org.openstreetmap.josm.data.osm.Tag; 9 import org.openstreetmap.josm.data.osm.Tagged; 10 import org.openstreetmap.josm.data.osm.Way; 9 11 import org.openstreetmap.josm.testutils.JOSMTestRules; 10 12 … … 34 36 assertEquals(0, ReverseWayNoTagCorrector.getDirectionalTags(new Tag("incline", "up")).size()); 35 37 assertEquals(0, ReverseWayNoTagCorrector.getDirectionalTags(new Tag("oneway", "yes")).size()); 38 assertEquals(1, ReverseWayNoTagCorrector.getDirectionalTags(new Tag("barrier", "kerb")).size()); 39 assertEquals(1, ReverseWayNoTagCorrector.getDirectionalTags(new Tag("barrier", "city_wall")).size()); 40 41 final Tagged twoSidedCityWall = new Way(); 42 twoSidedCityWall.put("barrier", "city_wall"); 43 twoSidedCityWall.put("two_sided", "yes"); 44 assertEquals(0, ReverseWayNoTagCorrector.getDirectionalTags(twoSidedCityWall).size()); 36 45 } 37 46 }
Note:
See TracChangeset
for help on using the changeset viewer.