- Timestamp:
- 2013-12-27T21:16:58+01:00 (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/validator/highway.mapcss
r6516 r6549 58 58 } 59 59 60 way[foot][highway =~ /motorway|trunk|primary|secondary|tertiary/] { 61 throwWarning: tr("{0} used with {1}", "{0.key}", "{1.tag}"); 62 suggestAlternative: "sidewalk"; 63 suggestAlternative: "separate footway"; 64 assertMatch: "way highway=primary foot=yes"; 65 assertNoMatch: "way highway=primary"; 66 } 67 60 68 way[highway=road] { 61 69 throwWarning: tr("temporary highway type"); … … 107 115 assertNoMatch: "way name=Foobarstraße"; 108 116 } 109 110 /*111 TODO: * : W : / *name * /i == * && name != * # misspelled key name112 */ -
trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
r6548 r6549 62 62 protected final List<PrimitiveToTag> change = new ArrayList<PrimitiveToTag>(); 63 63 protected final Map<String, String> keyChange = new LinkedHashMap<String, String>(); 64 protected final List< Tag> alternatives = new ArrayList<Tag>();64 protected final List<String> alternatives = new ArrayList<String>(); 65 65 protected final Map<String, Severity> errors = new HashMap<String, Severity>(); 66 66 protected final Map<String, Boolean> assertions = new HashMap<String, Boolean>(); … … 128 128 check.keyChange.put(x[0].trim(), x[1].trim()); 129 129 } else if ("suggestAlternative".equals(ai.key) && val != null) { 130 check.alternatives.add(val .contains("=") ? Tag.ofString(val) : new Tag(val));130 check.alternatives.add(val); 131 131 } else if ("assertMatch".equals(ai.key) && val != null) { 132 132 check.assertions.put(val, true);
Note:
See TracChangeset
for help on using the changeset viewer.