Ticket #8211: deprecated.diff
| File deprecated.diff, 1.7 KB (added by , 13 years ago) |
|---|
-
src/org/openstreetmap/josm/data/validation/tests/DeprecatedTags.java
80 80 checks.add(new DeprecationCheck(2115). 81 81 testAndRemove("bicycle_parking", "sheffield"). 82 82 add("bicycle_parking", "stands")); 83 checks.add(new DeprecationCheck(2116). 84 testAndRemove("type", "multipolygon"). 85 testAndRemove("boundary", "administrative"). 86 add("type", "boundary")); 83 87 } 84 88 85 89 public void visit(OsmPrimitive p) { -
src/org/openstreetmap/josm/actions/upload/FixDataHook.java
41 41 deprecated.add(new FixDataTag("oneway", "true", "oneway", "yes")); 42 42 deprecated.add(new FixDataTag("oneway", "1", "oneway", "yes")); 43 43 deprecated.add(new FixDataTag("highway", "stile", "barrier", "stile")); 44 deprecated.add(new FixData() {45 public boolean fixKeys(Map<String, String> keys, OsmPrimitive osm) {46 if(osm instanceof Relation && "multipolygon".equals(keys.get("type")) && "administrative".equals(keys.get("boundary"))) {47 keys.put("type", "boundary");48 return true;49 }50 return false;51 }52 });53 44 } 54 45 55 46 /**
