source: josm/trunk/data/validator/deprecated.mapcss@ 6510

Last change on this file since 6510 was 6506, checked in by simon04, 11 years ago

see #9414 - implement MapCSS-based tag checker/fixer

The file deprecated.mapcss contains all DeprecatedTags tests. The
latter is to be removed eventually.

File size: 5.9 KB
Line 
1*[barrier=wire_fence] {
2 throwWarning: tr("{0}={1} is deprecated", "barrier", "wire_fence");
3 fixRemove: "barrier";
4 fixAdd: "barrier=fence";
5 fixAdd: "fence_type=chain_link";
6}
7
8*[barrier=wood_fence] {
9 throwWarning: tr("{0}={1} is deprecated", "barrier", "wood_fence");
10 fixRemove: "barrier";
11 fixAdd: "barrier=fence";
12 fixAdd: "fence_type=wood";
13}
14
15*[highway=ford] {
16 throwWarning: tr("{0}={1} is deprecated", "highway", "ford");
17 fixRemove: "highway";
18 fixAdd: "ford=yes";
19}
20
21*[class] {
22 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
23 throwWarning: tr("{0} is deprecated", "class");
24 suggestAlternative: "highway";
25}
26
27*[highway=stile] {
28 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
29 throwWarning: tr("{0}={1} is deprecated", "highway", "stile");
30 fixRemove: "highway";
31 fixAdd: "barrier=stile";
32}
33
34*[highway=incline] {
35 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
36 throwWarning: tr("{0}={1} is deprecated", "highway", "incline");
37 suggestAlternative: "incline";
38}
39
40*[highway=incline_steep] {
41 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
42 throwWarning: tr("{0}={1} is deprecated", "highway", "incline");
43 suggestAlternative: "incline";
44}
45
46*[highway=unsurfaced] {
47 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
48 throwWarning: tr("{0}={1} is deprecated", "highway", "unsurfaced");
49 fixRemove: "highway";
50 fixAdd: "highway=road";
51 fixAdd: "incline=unpaved";
52}
53
54*[landuse=wood] {
55 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
56 throwWarning: tr("{0}={1} is deprecated", "landuse", "wood");
57 suggestAlternative: "landuse=forest";
58 suggestAlternative: "natural=wood";
59}
60
61*[natural=marsh] {
62 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
63 throwWarning: tr("{0}={1} is deprecated", "natural", "marsh");
64 fixRemove: "natural";
65 fixAdd: "natural=wetland";
66 fixAdd: "wetland=marsh";
67}
68
69*[highway=byway] {
70 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
71 throwWarning: tr("{0}={1} is deprecated", "highway", "byway");
72}
73
74*[power_source] {
75 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
76 throwWarning: tr("{0} is deprecated", "power_source");
77 suggestAlternative: "generator:source";
78}
79
80*[power_rating] {
81 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
82 throwWarning: tr("{0} is deprecated", "power_rating");
83 suggestAlternative: "generator:output";
84}
85
86*[shop=organic] {
87 /* from http://wiki.openstreetmap.org/wiki/Tag:shop=organic */
88 throwWarning: tr("{0}={1} is deprecated", "shop", "organic");
89 fixRemove: "shop";
90 fixAdd: "shop=supermarket";
91 fixAdd: "organic=only";
92}
93
94*[bicycle_parking=sheffield] {
95 /* from http://wiki.openstreetmap.org/wiki/Key:bicycle_parking */
96 throwWarning: tr("{0}={1} is deprecated", "bicycle_parking", "sheffield");
97 fixRemove: "bicycle_parking";
98 fixAdd: "bicycle_parking=stands";
99}
100
101*[amenity=emergency_phone] {
102 /* http://wiki.openstreetmap.org/wiki/Tag:emergency=phone */
103 throwWarning: tr("{0}={1} is deprecated", "amenity", "emergency_phone");
104 fixRemove: "amenity";
105 fixAdd: "emergency=phone";
106}
107
108*[sport=gaelic_football] {
109 /* fix #8132 - http://wiki.openstreetmap.org/wiki/Tag:sport=gaelic_football */
110 throwWarning: tr("{0}={1} is deprecated", "sport", "gaelic_football");
111 fixRemove: "sport";
112 fixAdd: "sport=gaelic_games";
113}
114
115*[power=station] {
116 /* see #8847 / #8961 - http://wiki.openstreetmap.org/wiki/Tag:power=station */
117 throwWarning: tr("{0}={1} is deprecated", "power", "station");
118 suggestAlternative: "power=plant";
119 suggestAlternative: "power=sub_station";
120}
121
122*[generator:method=dam] {
123 throwWarning: tr("{0}={1} is deprecated", "generator:method", "dam");
124 fixRemove: "generator:method";
125 fixAdd: "generator:method=water-storage";
126}
127
128*[generator:method=pumped-storage] {
129 throwWarning: tr("{0}={1} is deprecated", "generator:method", "pumped-storage");
130 fixRemove: "generator:method";
131 fixAdd: "generator:method=water-pumped-storage";
132}
133
134*[generator:method=pumping] {
135 throwWarning: tr("{0}={1} is deprecated", "generator:method", "pumping");
136 fixRemove: "generator:method";
137 fixAdd: "generator:method=water-pumped-storage";
138}
139
140*[fence_type=chain] {
141 /* see #8962 - http://wiki.openstreetmap.org/wiki/Key:fence_type */
142 throwWarning: tr("{0}={1} is deprecated", "fence_type", "chain");
143 suggestAlternative: "barrier=chain";
144 suggestAlternative: "fence_type=chain_link";
145}
146
147*[building=entrance] {
148 /* see #9000 - http://wiki.openstreetmap.org/wiki/Key:entrance */
149 throwWarning: tr("{0}={1} is deprecated", "building", "entrance");
150 suggestAlternative: "entrance";
151}
152
153*[board_type=board] {
154 /* see #9213 - Useless tag proposed in internal preset for years */
155 throwWarning: tr("{0}={1} is deprecated", "board_type", "board");
156 fixRemove: "board_type";
157}
158
159*[man_made=measurement_station] {
160 /* see #8434 - http://wiki.openstreetmap.org/wiki/Proposed_features/monitoring_station */
161 throwWarning: tr("{0}={1} is deprecated", "man_made", "measurement_station");
162 fixRemove: "man_made";
163 fixAdd: "man_made=monitoring_station";
164}
165
166*[measurement=water_level] {
167 throwWarning: tr("{0}={1} is deprecated", "measurement", "water_level");
168 fixRemove: "measurement";
169 fixAdd: "monitoring:water_level=yes";
170}
171
172*[measurement=weather] {
173 throwWarning: tr("{0}={1} is deprecated", "measurement", "weather");
174 fixRemove: "measurement";
175 fixAdd: "monitoring:weather=yes";
176}
177
178*[measurement=seismic] {
179 throwWarning: tr("{0}={1} is deprecated", "measurement", "seismic");
180 fixRemove: "measurement";
181 fixAdd: "monitoring:seismic_activity=yes";
182}
183
184*[monitoring:river_level] {
185 throwWarning: tr("{0} is deprecated", "monitoring:river_level");
186 fixChangeKey: "monitoring:river_level => monitoring:water_level";
187}
188
189*[layer=0] {
190 /* see #9365 - Useless tag layer=0 */
191 throwWarning: tr("{0}={1} is unnecessary", "layer", "0");
192 fixRemove: "layer";
193}
Note: See TracBrowser for help on using the repository browser.