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

Last change on this file since 10860 was 10860, checked in by Klumbumbus, 8 years ago

fix #13194 - update water, basin and reservoir presets; fix #13391 - remove autofix for wood=deciduous

  • Property svn:eol-style set to native
File size: 26.2 KB
Line 
1*[barrier=wire_fence] {
2 throwWarning: tr("{0} is deprecated", "{0.tag}");
3 suggestAlternative: "barrier=fence + fence_type=chain_link";
4 fixAdd: "barrier=fence";
5 fixAdd: "fence_type=chain_link";
6 assertMatch: "way barrier=wire_fence";
7 assertNoMatch: "way barrier=fence";
8}
9
10*[barrier=wood_fence] {
11 throwWarning: tr("{0} is deprecated", "{0.tag}");
12 suggestAlternative: "barrier=fence + fence_type=wood";
13 fixAdd: "barrier=fence";
14 fixAdd: "fence_type=wood";
15}
16
17*[highway=ford] {
18 throwWarning: tr("{0} is deprecated", "{0.tag}");
19 suggestAlternative: "ford=yes";
20 fixRemove: "highway";
21 fixAdd: "ford=yes";
22}
23
24*[class] {
25 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
26 throwWarning: tr("{0} is deprecated", "{0.key}");
27 suggestAlternative: "highway";
28}
29
30*[highway=stile] {
31 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
32 throwWarning: tr("{0} is deprecated", "{0.tag}");
33 suggestAlternative: "barrier=stile";
34 fixRemove: "highway";
35 fixAdd: "barrier=stile";
36}
37
38*[highway=incline] {
39 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
40 throwWarning: tr("{0} is deprecated", "{0.tag}");
41 suggestAlternative: "incline";
42}
43
44*[highway=incline_steep] {
45 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
46 throwWarning: tr("{0} is deprecated", "{0.tag}");
47 suggestAlternative: "incline";
48}
49
50*[highway=unsurfaced] {
51 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
52 throwWarning: tr("{0} is deprecated", "{0.tag}");
53 suggestAlternative: "highway=* + surface=unpaved";
54 fixAdd: "highway=road";
55 fixAdd: "surface=unpaved";
56}
57
58*[landuse=wood] {
59 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
60 throwWarning: tr("{0} is deprecated", "{0.tag}");
61 suggestAlternative: "landuse=forest";
62 suggestAlternative: "natural=wood";
63}
64
65*[natural=marsh] {
66 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
67 throwWarning: tr("{0} is deprecated", "{0.tag}");
68 suggestAlternative: "natural=wetland + wetland=marsh";
69 fixAdd: "natural=wetland";
70 fixAdd: "wetland=marsh";
71}
72
73*[highway=byway] {
74 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
75 throwWarning: tr("{0} is deprecated", "{0.tag}");
76}
77
78*[power_source] {
79 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
80 throwWarning: tr("{0} is deprecated", "{0.key}");
81 suggestAlternative: "generator:source";
82}
83
84*[power_rating] {
85 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
86 throwWarning: tr("{0} is deprecated", "{0.key}");
87 suggestAlternative: "generator:output";
88}
89
90*[shop=antique] {
91 throwWarning: tr("{0} is deprecated", "{0.tag}");
92 suggestAlternative: "shop=antiques";
93 fixAdd: "shop=antiques";
94}
95
96*[shop=bags] {
97 throwWarning: tr("{0} is deprecated", "{0.tag}");
98 suggestAlternative: "shop=bag";
99 fixAdd: "shop=bag";
100}
101
102*[shop=organic] {
103 /* from http://wiki.openstreetmap.org/wiki/Tag:shop=organic */
104 throwWarning: tr("{0} is deprecated", "{0.tag}");
105 suggestAlternative: "shop=* + organic=yes";
106 suggestAlternative: "shop=* + organic=only";
107}
108
109*[shop=pets] {
110 throwWarning: tr("{0} is deprecated", "{0.tag}");
111 suggestAlternative: "shop=pet";
112 fixAdd: "shop=pet";
113}
114
115*[shop=pharmacy] {
116 throwWarning: tr("{0} is deprecated", "{0.tag}");
117 suggestAlternative: "amenity=pharmacy";
118 fixChangeKey: "shop => amenity";
119}
120
121*[bicycle_parking=sheffield] {
122 /* from http://wiki.openstreetmap.org/wiki/Key:bicycle_parking */
123 throwWarning: tr("{0} is deprecated", "{0.tag}");
124 suggestAlternative: "bicycle_parking=stands";
125 fixAdd: "bicycle_parking=stands";
126}
127
128*[amenity=emergency_phone] {
129 /* http://wiki.openstreetmap.org/wiki/Tag:emergency=phone */
130 throwWarning: tr("{0} is deprecated", "{0.tag}");
131 suggestAlternative: "emergency=phone";
132 fixRemove: "amenity";
133 fixAdd: "emergency=phone";
134}
135
136*[sport=gaelic_football] {
137 /* fix #8132 - http://wiki.openstreetmap.org/wiki/Tag:sport=gaelic_football */
138 throwWarning: tr("{0} is deprecated", "{0.tag}");
139 suggestAlternative: "sport=gaelic_games";
140 fixAdd: "sport=gaelic_games";
141}
142
143*[power=station] {
144 /* see #8847 / #8961 - http://wiki.openstreetmap.org/wiki/Tag:power=station */
145 throwWarning: tr("{0} is deprecated", "{0.tag}");
146 suggestAlternative: "power=plant";
147 suggestAlternative: "power=substation";
148}
149
150*[power=sub_station] {
151 throwWarning: tr("{0} is deprecated", "{0.tag}");
152 suggestAlternative: "power=substation";
153 fixAdd: "power=substation";
154}
155
156*[generator:method=dam] {
157 throwWarning: tr("{0} is deprecated", "{0.tag}");
158 suggestAlternative: "generator:method=water-storage";
159 fixAdd: "generator:method=water-storage";
160}
161
162*[generator:method=pumped-storage] {
163 throwWarning: tr("{0} is deprecated", "{0.tag}");
164 suggestAlternative: "generator:method=water-pumped-storage";
165 fixAdd: "generator:method=water-pumped-storage";
166}
167
168*[generator:method=pumping] {
169 throwWarning: tr("{0} is deprecated", "{0.tag}");
170 suggestAlternative: "generator:method=water-pumped-storage";
171 fixAdd: "generator:method=water-pumped-storage";
172}
173
174*[fence_type=chain] {
175 /* see #8962 - http://wiki.openstreetmap.org/wiki/Key:fence_type */
176 throwWarning: tr("{0} is deprecated", "{0.tag}");
177 suggestAlternative: "barrier=chain";
178 suggestAlternative: "barrier=fence + fence_type=chain_link";
179}
180
181*[building=entrance] {
182 /* see #9000 - http://wiki.openstreetmap.org/wiki/Key:entrance */
183 throwWarning: tr("{0} is deprecated", "{0.tag}");
184 suggestAlternative: "entrance";
185}
186
187*[board_type=board] {
188 /* see #9213 - Useless tag proposed in internal preset for years */
189 throwWarning: tr("{0} is deprecated", "{0.tag}");
190 fixRemove: "board_type";
191}
192
193*[man_made=measurement_station] {
194 /* see #8434 - http://wiki.openstreetmap.org/wiki/Proposed_features/monitoring_station */
195 throwWarning: tr("{0} is deprecated", "{0.tag}");
196 suggestAlternative: "man_made=monitoring_station";
197 fixAdd: "man_made=monitoring_station";
198}
199
200*[measurement=water_level] {
201 throwWarning: tr("{0} is deprecated", "{0.tag}");
202 suggestAlternative: "monitoring:water_level=yes";
203 fixRemove: "measurement";
204 fixAdd: "monitoring:water_level=yes";
205}
206
207*[measurement=weather] {
208 throwWarning: tr("{0} is deprecated", "{0.tag}");
209 suggestAlternative: "monitoring:weather=yes";
210 fixRemove: "measurement";
211 fixAdd: "monitoring:weather=yes";
212}
213
214*[measurement=seismic] {
215 throwWarning: tr("{0} is deprecated", "{0.tag}");
216 suggestAlternative: "monitoring:seismic_activity=yes";
217 fixRemove: "measurement";
218 fixAdd: "monitoring:seismic_activity=yes";
219}
220
221*[monitoring:river_level] {
222 throwWarning: tr("{0} is deprecated", "{0.key}");
223 suggestAlternative: "monitoring:water_level";
224 fixChangeKey: "monitoring:river_level => monitoring:water_level";
225}
226
227*[stay] {
228 throwWarning: tr("{0} is deprecated", "{0.key}");
229 suggestAlternative: "maxstay";
230 fixChangeKey: "stay => maxstay";
231}
232
233*[emergency=aed] {
234 /* see #9554 - http://wiki.openstreetmap.org/wiki/Proposed_features/automated_external_defibrillator */
235 throwWarning: tr("{0} is deprecated", "{0.tag}");
236 suggestAlternative: "emergency=defibrillator";
237 fixAdd: "emergency=defibrillator";
238}
239
240/* from http://wiki.openstreetmap.org/wiki/Conditional_restrictions#Deprecated_tags */
241*[day_on][!restriction],
242*[day_off][!restriction],
243*[date_on][!restriction],
244*[date_off][!restriction],
245*[hour_on][!restriction],
246*[hour_off][!restriction] {
247 throwWarning: tr("{0} is deprecated", "{0.key}");
248 suggestAlternative: "*:conditional";
249 assertMatch: "node day_on=0-12";
250}
251
252/* see #10000, http://wiki.openstreetmap.org/wiki/Tag%3Aaccess%3Ddesignated */
253*[access=designated] {
254 throwWarning: tr("''{0}'' is meaningless, use more specific tags, e.g. ''{1}''", "access=designated", "bicycle=designated");
255 assertMatch: "way access=designated";
256}
257*[access=official] {
258 throwWarning: tr("''{0}'' does not specify the official mode of transportation, use ''{1}'' for example", "access=official", "bicycle=official");
259 assertMatch: "way access=official";
260}
261
262/* see #10085 - give warning for fixme=yes */
263*[fixme=yes], *[FIXME=yes] {
264 throwWarning: tr("{0}={1} is unspecific. Instead of ''{1}'' please give more information about what exactly should be fixed.", "{0.key}", "{0.value}");
265 assertMatch: "way fixme=yes";
266}
267
268*[name][name=~/^(?i)fixme$/] {
269 throwWarning: tr("Wrong usage of {0} tag. Remove {1}, because it is clear that the name is missing even without an additional tag.", "{0.key}", "{0.tag}");
270 fixRemove: "name";
271 assertMatch: "node name=fixme";
272 assertMatch: "node name=Fixme";
273 assertMatch: "node name=FIXME";
274 assertNoMatch: "node name=valid name";
275}
276
277*[note][note=~/^(?i)fixme$/] {
278 throwWarning: tr("{0} is unspecific. Instead use the key fixme with the information what exactly should be fixed in the value of fixme.", "{0.tag}");
279}
280
281/* see #10107, #10108, #10929, #13391 - http://wiki.openstreetmap.org/wiki/Proposed_features/leaftype#Features.2FPages_affected */
282*[type=broad_leaved],
283*[type=broad_leafed] {
284 throwWarning: tr("{0} is deprecated", "{0.tag}");
285 suggestAlternative: "leaf_type=broadleaved";
286 fixRemove: "{0.key}";
287 fixAdd: "leaf_type=broadleaved";
288}
289
290*[wood=coniferous],
291*[type=coniferous],
292*[type=conifer] {
293 throwWarning: tr("{0} is deprecated", "{0.tag}");
294 suggestAlternative: "leaf_type=needleleaved";
295 fixRemove: "{0.key}";
296 fixAdd: "leaf_type=needleleaved";
297}
298
299*[wood=mixed] {
300 throwWarning: tr("{0} is deprecated", "{0.tag}");
301 suggestAlternative: "leaf_type=mixed";
302 fixRemove: "wood";
303 fixAdd: "leaf_type=mixed";
304}
305
306*[wood=evergreen],
307*[type=evergreen] {
308 throwWarning: tr("{0} is deprecated", "{0.tag}");
309 suggestAlternative: "leaf_cycle=evergreen";
310 fixRemove: "{0.key}";
311 fixAdd: "leaf_cycle=evergreen";
312}
313
314*[type=deciduous],
315*[type=deciduos] {
316 throwWarning: tr("{0} is deprecated", "{0.tag}");
317 suggestAlternative: "leaf_cycle=deciduous";
318 fixRemove: "type";
319 fixAdd: "leaf_cycle=deciduous";
320}
321
322*[wood=deciduous] {
323 throwWarning: tr("{0} is deprecated", "{0.tag}");
324 suggestAlternative: "leaf_type + leaf_cycle";
325}
326
327node[type=palm],
328way[type=palm] {
329 throwWarning: tr("{0} is deprecated", "{0.tag}");
330 suggestAlternative: "leaf_type";
331 suggestAlternative: "trees";
332 suggestAlternative: "species";
333}
334
335*[natural=land] {
336 throwWarning: tr("{0} is deprecated. Please use instead a multipolygon.", "{0.tag}");
337 assertMatch: "way natural=land";
338}
339
340/* see #10447 - https://wiki.openstreetmap.org/wiki/Proposed_features/Bridge_types#Deprecated_bridge_key_values */
341*[bridge=causeway] {
342 throwWarning: tr("{0} is deprecated", "{0.tag}");
343 suggestAlternative: "ford=yes";
344 suggestAlternative: "bridge=low_water_crossing";
345 suggestAlternative: "embankment=yes";
346}
347
348*[bridge=swing] {
349 throwWarning: tr("{0} is deprecated", "{0.tag}");
350 suggestAlternative: "bridge:movable=swing";
351 suggestAlternative: "bridge:structure=simple-suspension";
352}
353
354*[bridge=suspension] {
355 throwWarning: tr("{0} is deprecated", "{0.tag}");
356 suggestAlternative: "bridge=yes + bridge:structure=suspension";
357 fixAdd: "bridge=yes";
358 fixAdd: "bridge:structure=suspension";
359}
360
361/* See #10530 - Incorrect tag proposed in internal preset for years */
362*[fee=interval],
363*[lit=interval],
364*[supervised=interval] {
365 throwWarning: tr("{0} is deprecated. Please specify interval by using opening_hours syntax", "{0.tag}");
366}
367
368/* See #10582 - JOSM supported this tag as "don't upload this" feature, before the introduction of upload flag at layer level */
369*[/josm\/ignore/] {
370 throwError: tr("{0} is deprecated. Please delete this object and use a private layer instead", "{0.key}");
371 fixDeleteObject: this;
372}
373
374/* see #8281 */
375*[sport=diving] {
376 throwWarning: tr("{0} is deprecated", "{0.tag}");
377 suggestAlternative: "sport=scuba_diving";
378 suggestAlternative: "sport=cliff_diving";
379}
380
381/* see #8281 */
382*[parking=park_and_ride] {
383 throwWarning: tr("{0} is deprecated", "{0.tag}");
384 suggestAlternative: "amenity=parking + park_ride=yes";
385 fixRemove: "parking";
386 fixAdd: "amenity=parking";
387 fixAdd: "park_ride=yes";
388}
389
390/* see #10661, #10837, #11737, #12771 */
391*[traffic_calming=yes],
392*[access=restricted],
393*[barrier=yes],
394*[aerialway=yes][!public_transport],
395*[amenity=yes],
396*[leisure=yes],
397*[shop="*"],
398*[craft=yes],
399*[service=yes],
400*[place=yes] {
401 throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by a specific value.", "{0.key}", "{0.value}");
402}
403
404/* see #10693 - http://wiki.openstreetmap.org/wiki/Proposed_features/drop_recommendation_for_place_name , #10837 */
405*[place_name][!name] {
406 throwWarning: tr("{0} should be replaced with {1}", "{0.key}", "{1.key}");
407 fixChangeKey: "place_name => name";
408}
409*[place][place_name = *name] {
410 throwWarning: tr("{0} = {1}; remove {0}", "{1.key}", "{1.value}");
411 fixRemove: "{1.key}";
412}
413
414way[sidewalk=yes] {
415 throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by ''left'', ''right'' or ''both''.", "{0.key}", "{0.value}");
416}
417
418*[waterway=water_point] {
419 throwWarning: tr("{0} is deprecated", "{0.tag}");
420 suggestAlternative: "amenity=water_point";
421 fixChangeKey: "waterway => amenity";
422}
423*[waterway=waste_disposal] {
424 throwWarning: tr("{0} is deprecated", "{0.tag}");
425 suggestAlternative: "amenity=waste_disposal";
426 fixChangeKey: "waterway => amenity";
427}
428*[waterway=mooring] {
429 throwWarning: tr("{0} is deprecated", "{0.tag}");
430 suggestAlternative: "mooring=yes";
431 fixRemove: "waterway";
432 fixAdd: "mooring=yes";
433}
434
435/* see #10837 */
436*[building][levels],
437*[building:part=yes][levels] {
438 throwWarning: tr("{0} is deprecated", "{1.key}");
439 suggestAlternative: "building:levels";
440 fixChangeKey: "levels => building:levels";
441}
442
443/* see #10691 */
444*[protected_class] {
445 throwWarning: tr("{0} is deprecated", "{0.key}");
446 suggestAlternative: "protect_class";
447 fixChangeKey: "protected_class => protect_class";
448}
449
450/* see #11070 */
451*[lock=unknown],
452*[hide=unknown],
453*[shelter=unknown],
454*[access=unknown],
455*[capacity:parent=unknown],
456*[capacity:women=unknown],
457*[capacity:disabled=unknown],
458*[crossing=unknown],
459*[foot=unknown] {
460 throwWarning: tr("Unspecific tag {0}", "{0.tag}");
461}
462
463/* unclear definition, see #11183 */
464*[sport=skiing][!piste:type] {
465 throwWarning: tr("Definition of {0} is unclear", "{0.tag}");
466 suggestAlternative: {1.key};
467}
468
469/* see #11223 */
470*[waterway=wadi] {
471 throwWarning: tr("{0} is deprecated", "{0.tag}");
472 suggestAlternative: "{0.key}=* + intermittent=yes";
473 suggestAlternative: "natural=valley";
474}
475
476/* see #10346 */
477way[oneway=1] {
478 throwWarning: tr("{0} is deprecated", "{0.tag}");
479 suggestAlternative: "oneway=yes";
480 fixAdd: "oneway=yes";
481}
482
483/* see #11329 */
484way[oneway=-1] {
485 throwWarning: tr("{0} is not recommended. Use the Reverse Ways function from the Tools menu.", "{0.tag}");
486}
487
488*[drinkable] {
489 throwWarning: tr("{0} is deprecated", "{0.key}");
490 suggestAlternative: "drinking_water";
491}
492
493/* see #10329 */
494*[color][!colour] {
495 throwWarning: tr("{0} is deprecated", "{0.key}");
496 suggestAlternative: "colour";
497 fixChangeKey: "color => colour";
498}
499*[color][colour][tag(color)=tag(colour)] {
500 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
501 set samecolor;
502 fixRemove: "color";
503}
504*[color][colour]!.samecolor {
505 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
506}
507*[/:color/]{
508 throwWarning: tr("{0} is deprecated", "{0.key}");
509 suggestAlternative: ":colour";
510}
511*[/color:/] {
512 throwWarning: tr("{0} is deprecated", "{0.key}");
513 suggestAlternative: "colour:";
514}
515
516/* see #11234 */
517*[/=|\+|\/|&|<|>|;|'|"|%|#|@|\\|,|\.|\{|\}|\?|\*|\^|\$/] {
518 throwWarning: tr("key with uncommon character");
519}
520
521/* see #11330 */
522*[/^.$/],
523node[/^..$/],
524way[/^..$/],
525relation[/^..$/][!to] {
526 throwWarning: tr("uncommon short key");
527}
528
529/* see #11344 */
530*[tower=air_to_ground] {
531 throwWarning: tr("{0} is deprecated", "{0.tag}");
532 suggestAlternative: "tower=transition";
533 fixAdd: "tower=transition";
534}
535*[pole=air_to_ground] {
536 throwWarning: tr("{0} is deprecated", "{0.tag}");
537 suggestAlternative: "pole=transition";
538 fixAdd: "pole=transition";
539}
540
541/* see #11439 */
542*[sport=hockey] {
543 throwWarning: tr("{0} is inaccurate", "{0.tag}");
544 suggestAlternative: "sport=field_hockey";
545 suggestAlternative: "sport=ice_hockey";
546}
547
548/* see #11471 */
549*[sport=billard],
550*[sport=billards],
551*[sport=billiard] {
552 throwWarning: tr("{0} is deprecated", "{0.tag}");
553 suggestAlternative: "sport=billiards";
554 fixAdd: "sport=billiards";
555}
556
557/* see #11499 */
558*[payment:credit_cards=yes] {
559 throwWarning: tr("{0} is inaccurate", "{0.tag}");
560 suggestAlternative: "payment:mastercard=yes";
561 suggestAlternative: "payment:visa=yes";
562 suggestAlternative: "...";
563}
564*[payment:debit_cards=yes] {
565 throwWarning: tr("{0} is inaccurate", "{0.tag}");
566 suggestAlternative: "payment:maestro=yes";
567 suggestAlternative: "payment:girocard=yes";
568 suggestAlternative: "...";
569}
570*[payment:electronic_purses=yes] {
571 throwWarning: tr("{0} is inaccurate", "{0.tag}");
572 suggestAlternative: "payment:ep_geldkarte=yes";
573 suggestAlternative: "payment:ep_quick=yes";
574 suggestAlternative: "...";
575}
576*[payment:cryptocurrencies=yes] {
577 throwWarning: tr("{0} is inaccurate", "{0.tag}");
578 suggestAlternative: "payment:bitcoin=yes";
579 suggestAlternative: "payment:litecoin=yes";
580 suggestAlternative: "...";
581}
582
583/* see #8717 */
584*[kp][highway=milestone],
585*[kp][railway=milestone],
586*[kp][waterway=milestone] {
587 throwWarning: tr("{0} is deprecated", "{0.key}");
588 suggestAlternative: "distance";
589 fixChangeKey: "kp => distance";
590}
591*[pk][highway=milestone],
592*[pk][railway=milestone],
593*[pk][waterway=milestone] {
594 throwWarning: tr("{0} is deprecated", "{0.key}");
595 suggestAlternative: "distance";
596 fixChangeKey: "pk => distance";
597}
598
599*[postcode] {
600 throwWarning: tr("{0} is deprecated", "{0.key}");
601 suggestAlternative: "addr:postcode";
602 suggestAlternative: "postal_code";
603}
604
605*[water=intermittent] {
606 throwWarning: tr("{0} is deprecated", "{0.tag}");
607 suggestAlternative: "intermittent=yes";
608 fixRemove: "water";
609 fixAdd: "intermittent=yes";
610}
611
612*[type][man_made=pipeline],
613*[type][pipeline=marker] {
614 throwWarning: tr("{0} is deprecated", "{0.key}");
615 suggestAlternative: "substance";
616 fixChangeKey: "type => substance";
617}
618
619*[landuse=farm] {
620 throwWarning: tr("{0} is deprecated", "{0.tag}");
621 suggestAlternative: "landuse=farmland";
622 suggestAlternative: "landuse=farmyard";
623}
624
625/* #12135 comment:11 */
626*[seamark=buoy]["seamark:type"=~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
627 throwWarning: tr("{0} is deprecated", "{0.tag}");
628 suggestAlternative: "{1.tag}";
629 fixRemove: "seamark";
630}
631*[seamark=buoy]["seamark:type"!~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
632 throwWarning: tr("{0} is deprecated", "{0.tag}");
633 suggestAlternative: "{1.tag}";
634}
635/* #12135 - Tag removed rom rendering https://github.com/gravitystorm/openstreetmap-carto/pull/1830 */
636*[landuse=conservation] {
637 throwWarning: tr("{0} is deprecated", "{0.tag}");
638 suggestAlternative: "boundary=protected_area";
639 fixAdd: "boundary=protected_area";
640 fixRemove: "landuse";
641}
642
643/* #12205 */
644*[amenity=kiosk] {
645 throwWarning: tr("{0} is deprecated", "{0.tag}");
646 suggestAlternative: "shop=kiosk";
647 fixChangeKey: "amenity => shop";
648}
649*[amenity=shop] {
650 throwWarning: tr("{0} is deprecated", "{0.tag}");
651 suggestAlternative: "shop=*";
652}
653*[shop=fishmonger] {
654 throwWarning: tr("{0} is deprecated", "{0.tag}");
655 suggestAlternative: "shop=seafood";
656 fixAdd: "shop=seafood";
657}
658*[shop=fish] {
659 throwWarning: tr("{0} is deprecated", "{0.tag}");
660 suggestAlternative: "shop=seafood";
661 suggestAlternative: "shop=pet";
662 suggestAlternative: "shop=fishing";
663}
664*[shop=betting] {
665 throwWarning: tr("{0} is deprecated", "{0.tag}");
666 suggestAlternative: "shop=bookmaker";
667 suggestAlternative: "shop=lottery";
668 suggestAlternative: "amenity=casino";
669 suggestAlternative: "leisure=amusement_arcade";
670 suggestAlternative: "leisure=adult_gaming_centre";
671 suggestAlternative: "amenity=gambling";
672}
673*[shop=perfume] {
674 throwWarning: tr("{0} is deprecated", "{0.tag}");
675 suggestAlternative: "shop=perfumery";
676 fixAdd: "shop=perfumery";
677}
678*[amenity=exercise_point] {
679 throwWarning: tr("{0} is deprecated", "{0.tag}");
680 suggestAlternative: "leisure=fitness_station";
681 fixAdd: "leisure=fitness_station";
682 fixRemove: "amenity";
683}
684*[shop=auto_parts] {
685 throwWarning: tr("{0} is deprecated", "{0.tag}");
686 suggestAlternative: "shop=car_parts";
687 fixAdd: "shop=car_parts";
688}
689*[amenity=car_repair] {
690 throwWarning: tr("{0} is deprecated", "{0.tag}");
691 suggestAlternative: "shop=car_repair";
692 fixChangeKey: "amenity => shop";
693}
694
695/* #12311 */
696*[amenity=studio][type=audio],
697*[amenity=studio][type=radio],
698*[amenity=studio][type=television],
699*[amenity=studio][type=video] {
700 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
701 suggestAlternative: "studio";
702 fixChangeKey: "type => studio";
703}
704
705/* #11507, #12297 */
706*[power=cable_distribution_cabinet] {
707 throwWarning: tr("{0} is deprecated", "{0.tag}");
708 suggestAlternative: "man_made=street_cabinet + street_cabinet=power";
709 fixAdd: "man_made=street_cabinet";
710 fixAdd: "street_cabinet=power";
711 fixRemove: "power";
712}
713
714/* #12276 */
715*[man_made=well] {
716 throwWarning: tr("{0} is deprecated", "{0.tag}");
717 suggestAlternative: "man_made=water_well";
718 suggestAlternative: "man_made=petroleum_well";
719}
720*[amenity=dog_bin],
721*[amenity=dog_waste_bin] {
722 throwWarning: tr("{0} is deprecated", "{0.tag}");
723 suggestAlternative: "amenity=waste_basket + waste=dog_excrement + vending=excrement_bags";
724 fixAdd: "amenity=waste_basket";
725 fixAdd: "waste=dog_excrement";
726 fixAdd: "vending=excrement_bags";
727}
728*[amenity=artwork] {
729 throwWarning: tr("{0} is deprecated", "{0.tag}");
730 suggestAlternative: "tourism=artwork";
731 fixAdd: "tourism=artwork";
732 fixRemove: "amenity";
733}
734*[amenity=community_center] {
735 throwWarning: tr("{0} is deprecated", "{0.tag}");
736 suggestAlternative: "amenity=community_centre";
737 fixAdd: "amenity=community_centre";
738}
739*[man_made=cut_line] {
740 throwWarning: tr("{0} is deprecated", "{0.tag}");
741 suggestAlternative: "man_made=cutline";
742 fixAdd: "man_made=cutline";
743}
744*[amenity=park] {
745 throwWarning: tr("{0} is deprecated", "{0.tag}");
746 suggestAlternative: "leisure=park";
747 fixAdd: "leisure=park";
748 fixRemove: "amenity";
749}
750*[amenity=hotel] {
751 throwWarning: tr("{0} is deprecated", "{0.tag}");
752 suggestAlternative: "tourism=hotel";
753 fixAdd: "tourism=hotel";
754 fixRemove: "amenity";
755}
756*[shop=window],
757*[shop=windows] {
758 throwWarning: tr("{0} is deprecated", "{0.tag}");
759 suggestAlternative: "craft=window_construction";
760 fixAdd: "craft=window_construction";
761 fixRemove: "shop";
762}
763*[amenity=education] {
764 throwWarning: tr("{0} is deprecated", "{0.tag}");
765 suggestAlternative: "amenity=college";
766 suggestAlternative: "amenity=school";
767 suggestAlternative: "amenity=university";
768}
769*[shop=gallery] {
770 throwWarning: tr("{0} is deprecated", "{0.tag}");
771 suggestAlternative: "shop=art";
772 fixAdd: "shop=art";
773}
774*[shop=gambling],
775*[leisure=gambling] {
776 throwWarning: tr("{0} is deprecated", "{0.tag}");
777 suggestAlternative: "shop=bookmaker";
778 suggestAlternative: "shop=lottery";
779 suggestAlternative: "amenity=casino";
780 suggestAlternative: "leisure=amusement_arcade";
781 suggestAlternative: "amenity=gambling";
782}
783*[office=real_estate_agent] {
784 throwWarning: tr("{0} is deprecated", "{0.tag}");
785 suggestAlternative: "office=estate_agent ";
786 fixAdd: "office=estate_agent ";
787}
788*[shop=glass] {
789 throwWarning: tr("{0} is deprecated", "{0.tag}");
790 suggestAlternative: "shop=glaziery";
791 suggestAlternative: "craft=glaziery";
792}
793*[amenity=proposed],
794*[amenity=proposed],
795*[amenity=disused],
796*[shop=disused],
797*[historic=abandoned] {
798 throwWarning: tr("{0} is deprecated. Use the {1}: key prefix instead.", "{0.tag}", "{0.value}");
799}
800
801/* #12431 */
802*[amenity=swimming_pool] {
803 throwWarning: tr("{0} is deprecated", "{0.tag}");
804 suggestAlternative: "leisure=swimming_pool";
805 fixChangeKey: "amenity => leisure";
806}
807
808/* #12494 */
809*[/^[^t][^i][^g].+_[0-9]$/][!/^note_[0-9]$/][!/^description_[0-9]$/] {
810 throwOther: tr("questionable key (ending with a number): {0}", "{0.key}");
811} /*should not warn for key tiger:name_base_1 */
812
813/* #12500 */
814*[sport=skating] {
815 throwWarning: tr("{0} is deprecated", "{0.tag}");
816 suggestAlternative: "sport=ice_skating";
817 suggestAlternative: "sport=roller_skating";
818}
819
820way[barrier=wall][type=noise_barrier][!wall],
821way[barrier=wall][type=noise_barrier][wall=noise_barrier] {
822 throwWarning: tr("{0} is deprecated", "{1.tag}");
823 suggestAlternative: "wall=noise_barrier";
824 fixChangeKey: "type => wall";
825}
826way[barrier=wall][type=noise_barrier][wall][wall!=noise_barrier] {
827 throwWarning: tr("{0} is deprecated", "{1.tag}");
828 suggestAlternative: "wall=noise_barrier";
829}
830
831/* #8978, 12588 */
832*[amenity=public_building] {
833 throwWarning: tr("{0} is deprecated", "{0.tag}");
834 suggestAlternative: "amenity=townhall";
835 suggestAlternative: "amenity=community_centre";
836 suggestAlternative: "amenity=hospital";
837 suggestAlternative: "leisure=sports_centre";
838 suggestAlternative: "office=government";
839 suggestAlternative: "building=hospital";
840 suggestAlternative: "building=public";
841 suggestAlternative: "...";
842}
843
844/* #12708 */
845*[vending=news_papers] {
846 throwWarning: tr("{0} is deprecated", "{0.tag}");
847 suggestAlternative: "vending=newspapers";
848 fixAdd: "vending=newspapers";
849}
850
851/* #12771 */
852*[service=drive_through] {
853 throwWarning: tr("{0} is deprecated", "{0.tag}");
854 suggestAlternative: "service=drive-through";
855 fixAdd: "service=drive-through";
856}
857
858/* #12771 */
859way[highway=service][service][service !~ /^(alley|drive-through|drive_through|driveway|emergency_access|parking_aisle|rest_area|yes)$/], /* drive_through and yes have special warnings */
860way[railway=rail][service][service !~ /^(crossover|siding|spur|yard)$/],
861way[waterway=canal][service][service !~ /^(irrigation|transportation|water_power)$/] {
862 throwWarning: tr("The key {0} has an uncommon value.", "{1.key}");
863}
864
865/* #13008 */
866*[name:botanical] {
867 throwWarning: tr("{0} is deprecated", "{0.key}");
868 suggestAlternative: "species";
869}
870
871/* #13101 */
872node[pole=transition] {
873 throwWarning: tr("{0} is deprecated", "{0.tag}");
874 suggestAlternative: "location:transition=yes";
875 fixAdd: "location:transition=yes";
876 fixRemove: "pole";
877}
878node[tower=transition] {
879 throwWarning: tr("{0} is deprecated", "{0.tag}");
880 suggestAlternative: "location:transition=yes";
881 fixAdd: "location:transition=yes";
882 fixRemove: "tower";
883}
884
885/* #13138 */
886area[landuse=pond] {
887 throwWarning: tr("{0} is deprecated", "{0.tag}");
888 suggestAlternative: "natural=water + water=pond";
889 fixAdd: "natural=water";
890 fixAdd: "water=pond";
891 fixRemove: "landuse";
892}
Note: See TracBrowser for help on using the repository browser.