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

Last change on this file since 7924 was 7924, checked in by Klumbumbus, 9 years ago

fix #10929 - deprecate type=conifer and type=coniferous

File size: 11.3 KB
Line 
1*[barrier=wire_fence] {
2 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
3 fixAdd: "barrier=fence";
4 fixAdd: "fence_type=chain_link";
5 assertMatch: "way barrier=wire_fence";
6 assertNoMatch: "way barrier=fence";
7}
8
9*[barrier=wood_fence] {
10 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
11 fixAdd: "barrier=fence";
12 fixAdd: "fence_type=wood";
13}
14
15*[highway=ford] {
16 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
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", "{0.key}");
24 suggestAlternative: "highway";
25}
26
27*[highway=stile] {
28 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
29 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
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", "{0.key}", "{0.value}");
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", "{0.key}", "{0.value}");
43 suggestAlternative: "incline";
44}
45
46*[highway=unsurfaced] {
47 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
48 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
49 fixAdd: "highway=road";
50 fixAdd: "incline=unpaved";
51}
52
53*[landuse=wood] {
54 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
55 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
56 suggestAlternative: "landuse=forest";
57 suggestAlternative: "natural=wood";
58}
59
60*[natural=marsh] {
61 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
62 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
63 fixAdd: "natural=wetland";
64 fixAdd: "wetland=marsh";
65}
66
67*[highway=byway] {
68 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
69 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
70}
71
72*[power_source] {
73 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
74 throwWarning: tr("{0} is deprecated", "{0.key}");
75 suggestAlternative: "generator:source";
76}
77
78*[power_rating] {
79 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
80 throwWarning: tr("{0} is deprecated", "{0.key}");
81 suggestAlternative: "generator:output";
82}
83
84*[shop=antique] {
85 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
86 fixAdd: "shop=antiques";
87}
88
89*[shop=bags] {
90 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
91 fixAdd: "shop=bag";
92}
93
94*[shop=organic] {
95 /* from http://wiki.openstreetmap.org/wiki/Tag:shop=organic */
96 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
97 fixAdd: "shop=supermarket";
98 fixAdd: "organic=only";
99}
100
101*[shop=pets] {
102 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
103 fixAdd: "shop=pet";
104}
105
106*[shop=pharmacy] {
107 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
108 fixChangeKey: "shop => amenity";
109}
110
111*[bicycle_parking=sheffield] {
112 /* from http://wiki.openstreetmap.org/wiki/Key:bicycle_parking */
113 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
114 fixAdd: "bicycle_parking=stands";
115}
116
117*[amenity=emergency_phone] {
118 /* http://wiki.openstreetmap.org/wiki/Tag:emergency=phone */
119 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
120 fixRemove: "amenity";
121 fixAdd: "emergency=phone";
122}
123
124*[sport=gaelic_football] {
125 /* fix #8132 - http://wiki.openstreetmap.org/wiki/Tag:sport=gaelic_football */
126 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
127 fixAdd: "sport=gaelic_games";
128}
129
130*[power=station] {
131 /* see #8847 / #8961 - http://wiki.openstreetmap.org/wiki/Tag:power=station */
132 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
133 suggestAlternative: "power=plant";
134 suggestAlternative: "power=substation";
135}
136
137*[power=sub_station] {
138 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
139 fixAdd: "power=substation";
140}
141
142*[generator:method=dam] {
143 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
144 fixAdd: "generator:method=water-storage";
145}
146
147*[generator:method=pumped-storage] {
148 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
149 fixAdd: "generator:method=water-pumped-storage";
150}
151
152*[generator:method=pumping] {
153 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
154 fixAdd: "generator:method=water-pumped-storage";
155}
156
157*[fence_type=chain] {
158 /* see #8962 - http://wiki.openstreetmap.org/wiki/Key:fence_type */
159 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
160 suggestAlternative: "barrier=chain";
161 suggestAlternative: "fence_type=chain_link";
162}
163
164*[building=entrance] {
165 /* see #9000 - http://wiki.openstreetmap.org/wiki/Key:entrance */
166 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
167 suggestAlternative: "entrance";
168}
169
170*[board_type=board] {
171 /* see #9213 - Useless tag proposed in internal preset for years */
172 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
173 fixRemove: "board_type";
174}
175
176*[man_made=measurement_station] {
177 /* see #8434 - http://wiki.openstreetmap.org/wiki/Proposed_features/monitoring_station */
178 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
179 fixAdd: "man_made=monitoring_station";
180}
181
182*[measurement=water_level] {
183 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
184 fixRemove: "measurement";
185 fixAdd: "monitoring:water_level=yes";
186}
187
188*[measurement=weather] {
189 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
190 fixRemove: "measurement";
191 fixAdd: "monitoring:weather=yes";
192}
193
194*[measurement=seismic] {
195 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
196 fixRemove: "measurement";
197 fixAdd: "monitoring:seismic_activity=yes";
198}
199
200*[monitoring:river_level] {
201 throwWarning: tr("{0} is deprecated", "{0.key}");
202 fixChangeKey: "monitoring:river_level => monitoring:water_level";
203}
204
205*[stay] {
206 throwWarning: tr("{0} is deprecated", "{0.key}");
207 fixChangeKey: "stay => maxstay";
208}
209
210*[emergency=aed] {
211 /* see #9554 - http://wiki.openstreetmap.org/wiki/Proposed_features/automated_external_defibrillator */
212 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
213 fixAdd: "emergency=defibrillator";
214}
215
216/* from http://wiki.openstreetmap.org/wiki/Conditional_restrictions#Deprecated_tags */
217*[day_on][!restriction],
218*[day_off][!restriction],
219*[date_on][!restriction],
220*[date_off][!restriction],
221*[hour_on][!restriction],
222*[hour_off][!restriction] {
223 throwWarning: tr("{0} is deprecated", "{0.key}");
224 suggestAlternative: "*:conditional";
225 assertMatch: "node day_on=0-12";
226}
227
228/* see #10000, http://wiki.openstreetmap.org/wiki/Tag%3Aaccess%3Ddesignated */
229*[access=designated] {
230 throwWarning: tr("''{0}'' is meaningless, use more specific tags, e.g. ''{1}''", "access=designated", "bicycle=designated");
231 assertMatch: "way access=designated";
232}
233*[access=official] {
234 throwWarning: tr("''{0}'' does not specify the official mode of transportation, use ''{1}'' for example", "access=official", "bicycle=official");
235 assertMatch: "way access=official";
236}
237
238/* see #10085 - give warning for fixme=yes */
239*[fixme=yes], *[FIXME=yes] {
240 throwWarning: tr("{0}={1} is unspecific. Instead of ''{1}'' please give more information about what exactly should be fixed.", "{0.key}", "{0.value}");
241 assertMatch: "way fixme=yes";
242}
243
244/* see #10107, #10108, #10929 - http://wiki.openstreetmap.org/wiki/Proposed_features/leaftype#Features.2FPages_affected */
245*[wood=deciduous],
246*[type=broad_leaved],
247*[type=broad_leafed] {
248 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
249 fixRemove: "{0.key}";
250 fixAdd: "leaf_type=broadleaved";
251}
252
253*[wood=coniferous],
254*[type=coniferous],
255*[type=conifer] {
256 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
257 fixRemove: "{0.key}";
258 fixAdd: "leaf_type=needleleaved";
259}
260
261*[wood=mixed] {
262 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
263 fixRemove: "wood";
264 fixAdd: "leaf_type=mixed";
265}
266
267*[wood=evergreen],
268*[type=evergreen] {
269 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
270 fixRemove: "{0.key}";
271 fixAdd: "leaf_cycle=evergreen";
272}
273
274*[type=deciduous],
275*[type=deciduos] {
276 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
277 fixRemove: "type";
278 fixAdd: "leaf_cycle=deciduous";
279}
280
281*[natural=land] {
282 throwWarning: tr("{0}={1} is deprecated. Please use instead a multipolygon.", "{0.key}", "{0.value}");
283 assertMatch: "way natural=land";
284}
285
286/* see #10447 - https://wiki.openstreetmap.org/wiki/Proposed_features/Bridge_types#Deprecated_bridge_key_values */
287*[bridge=causeway] {
288 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
289 suggestAlternative: "ford=yes";
290 suggestAlternative: "bridge=low_water_crossing";
291 suggestAlternative: "embankment=yes";
292}
293
294*[bridge=swing] {
295 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
296 suggestAlternative: "bridge:movable=swing";
297 suggestAlternative: "bridge:structure=simple-suspension";
298}
299
300*[bridge=suspension] {
301 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
302 fixAdd: "bridge=yes";
303 fixAdd: "bridge:structure=suspension";
304}
305
306/* See #10530 - Incorrect tag proposed in internal preset for years */
307*[fee=interval],
308*[lit=interval],
309*[supervised=interval] {
310 throwWarning: tr("{0} is deprecated. Please specify interval by using opening_hours syntax", "{0.tag}");
311}
312
313/* See #10582 - JOSM supported this tag as "don't upload this" feature, before the introduction of upload flag at layer level */
314*[/josm\/ignore/] {
315 throwError: tr("{0} is deprecated. Please delete this object and use a private layer instead", "{0.key}");
316 fixDeleteObject: this;
317}
318
319/* see #8281 */
320*[sport=diving] {
321 throwWarning: tr("{0} is deprecated", "{0.tag}");
322 suggestAlternative: "sport=scuba_diving";
323 suggestAlternative: "sport=cliff_diving";
324}
325
326/* see #8281 */
327*[parking=park_and_ride] {
328 throwWarning: tr("{0} is deprecated", "{0.tag}");
329 fixRemove: "parking";
330 fixAdd: "amenity=parking";
331 fixAdd: "park_ride=yes";
332}
333
334/* see #10661, #10837 */
335*[barrier=yes],
336*[aerialway=yes],
337*[amenity=yes],
338*[place=yes] {
339 throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by a specific value.", "{0.key}", "{0.value}");
340}
341
342/* see #10693 - http://wiki.openstreetmap.org/wiki/Proposed_features/drop_recommendation_for_place_name , #10837 */
343*[place_name][!name] {
344 throwWarning: tr("{0} should be replaced with {1}", "{0.key}", "{1.key}");
345 fixChangeKey: "place_name => name";
346}
347*[place][place_name = *name] {
348 throwWarning: tr("{0} = {1}; remove {0}", "{1.key}", "{1.value}");
349 fixRemove: "{1.key}";
350}
351
352way[sidewalk=yes] {
353 throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by ''left'', ''right'' or ''both''.", "{0.key}", "{0.value}");
354}
355
356*[waterway=water_point],
357*[waterway=waste_disposal] {
358 throwWarning: tr("{0} is deprecated", "{0.tag}");
359 fixChangeKey: "waterway => amenity";
360}
361*[waterway=mooring] {
362 throwWarning: tr("{0} is deprecated", "{0.tag}");
363 fixRemove: "waterway";
364 fixAdd: "mooring=yes";
365}
366
367/* see #10837 */
368*[building][levels] {
369 throwWarning: tr("{0} is deprecated", "{1.key}");
370 suggestAlternative: "building:levels";
371 fixChangeKey: "levels => building:levels";
372}
Note: See TracBrowser for help on using the repository browser.