Changeset 11364 in josm for trunk/data
- Timestamp:
- 2016-12-07T16:50:46+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/validator/highway.mapcss
r11337 r11364 92 92 } 93 93 94 /* footway, see #10851 */ 95 way[footway=left], 96 way[footway=right], 97 way[footway=both], 98 way[footway=no] { 94 /* footway, see #10851, #10976 */ 95 way[footway=left][/footway:/], 96 way[footway=right][/footway:/], 97 way[footway=both][/footway:/], 98 way[footway=no][/footway:/] { 99 throwWarning: tr("{0} is deprecated, use {1} instead. Also check similar tags like {2}", "{0.tag}", "sidewalk", "{1.key}"); 100 group: tr("deprecated tagging"); 101 set not_fixable_footway; 102 assertMatch: "way footway=both footway:surface=asphalt"; 103 } 104 way[footway=none][/footway:/] { 105 throwWarning: tr("{0} is deprecated, use {1} instead. Also check similar tags like {2}", "{0.tag}", "sidewalk=no", "{1.key}"); 106 group: tr("deprecated tagging"); 107 set not_fixable_footway; 108 } 109 way[footway=left]!.not_fixable_footway, 110 way[footway=right]!.not_fixable_footway, 111 way[footway=both]!.not_fixable_footway, 112 way[footway=no]!.not_fixable_footway { 99 113 throwWarning: tr("{0} is deprecated", "{0.tag}"); 100 114 suggestAlternative: "sidewalk"; 101 115 group: tr("deprecated tagging"); 102 116 fixChangeKey: "footway => sidewalk"; 103 set f ootway_to_sidewalk;117 set fixable_footway; 104 118 } 105 way[footway=none] { 119 way[footway=none]!.not_fixable_footway { 106 120 throwWarning: tr("{0} is deprecated", "{0.tag}"); 107 121 suggestAlternative: "sidewalk=no"; … … 109 123 fixRemove: "footway"; 110 124 fixAdd: "sidewalk=no"; 111 set f ootway_to_sidewalk;125 set fixable_footway; 112 126 } 113 way[footway][footway!=sidewalk][footway!=crossing]!.f ootway_to_sidewalk{ /* do not trigger this rule if already one of thetwoprevious rules applied */127 way[footway][footway!=sidewalk][footway!=crossing]!.fixable_footway!.not_fixable_footway { /* do not trigger this rule if already one of the 4 previous rules applied */ 114 128 throwWarning: tr("Value of ''{0}'' should either be ''{1}'' or ''{2}''. For sidewalks use ''{3}'' instead.", "{0.key}", "{1.value}", "{2.value}", "sidewalk=left|right|both|no"); 115 129 assertNoMatch: "way footway=left"; 116 130 assertNoMatch: "way footway=none"; 131 assertNoMatch: "way footway=left footway:left:surface=asphalt"; 117 132 assertMatch: "way footway=bar"; 118 133 }
Note:
See TracChangeset
for help on using the changeset viewer.