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

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

fix #13316 - add landuse=aquaculture to preset and mappaint style, icon self created (CC0 and PD licensed); deprecate type=palm; remove old validator rule for deprecated amenity=swimming_pool

  • Property svn:eol-style set to native
File size: 26.1 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 - http://wiki.openstreetmap.org/wiki/Proposed_features/leaftype#Features.2FPages_affected */
282*[wood=deciduous],
283*[type=broad_leaved],
284*[type=broad_leafed] {
285 throwWarning: tr("{0} is deprecated", "{0.tag}");
286 suggestAlternative: "leaf_type=broadleaved";
287 fixRemove: "{0.key}";
288 fixAdd: "leaf_type=broadleaved";
289}
290
291*[wood=coniferous],
292*[type=coniferous],
293*[type=conifer] {
294 throwWarning: tr("{0} is deprecated", "{0.tag}");
295 suggestAlternative: "leaf_type=needleleaved";
296 fixRemove: "{0.key}";
297 fixAdd: "leaf_type=needleleaved";
298}
299
300*[wood=mixed] {
301 throwWarning: tr("{0} is deprecated", "{0.tag}");
302 suggestAlternative: "leaf_type=mixed";
303 fixRemove: "wood";
304 fixAdd: "leaf_type=mixed";
305}
306
307*[wood=evergreen],
308*[type=evergreen] {
309 throwWarning: tr("{0} is deprecated", "{0.tag}");
310 suggestAlternative: "leaf_cycle=evergreen";
311 fixRemove: "{0.key}";
312 fixAdd: "leaf_cycle=evergreen";
313}
314
315*[type=deciduous],
316*[type=deciduos] {
317 throwWarning: tr("{0} is deprecated", "{0.tag}");
318 suggestAlternative: "leaf_cycle=deciduous";
319 fixRemove: "type";
320 fixAdd: "leaf_cycle=deciduous";
321}
322
323node[type=palm],
324way[type=palm] {
325 throwWarning: tr("{0} is deprecated", "{0.tag}");
326 suggestAlternative: "leaf_type";
327 suggestAlternative: "trees";
328 suggestAlternative: "species";
329}
330
331*[natural=land] {
332 throwWarning: tr("{0} is deprecated. Please use instead a multipolygon.", "{0.tag}");
333 assertMatch: "way natural=land";
334}
335
336/* see #10447 - https://wiki.openstreetmap.org/wiki/Proposed_features/Bridge_types#Deprecated_bridge_key_values */
337*[bridge=causeway] {
338 throwWarning: tr("{0} is deprecated", "{0.tag}");
339 suggestAlternative: "ford=yes";
340 suggestAlternative: "bridge=low_water_crossing";
341 suggestAlternative: "embankment=yes";
342}
343
344*[bridge=swing] {
345 throwWarning: tr("{0} is deprecated", "{0.tag}");
346 suggestAlternative: "bridge:movable=swing";
347 suggestAlternative: "bridge:structure=simple-suspension";
348}
349
350*[bridge=suspension] {
351 throwWarning: tr("{0} is deprecated", "{0.tag}");
352 suggestAlternative: "bridge=yes + bridge:structure=suspension";
353 fixAdd: "bridge=yes";
354 fixAdd: "bridge:structure=suspension";
355}
356
357/* See #10530 - Incorrect tag proposed in internal preset for years */
358*[fee=interval],
359*[lit=interval],
360*[supervised=interval] {
361 throwWarning: tr("{0} is deprecated. Please specify interval by using opening_hours syntax", "{0.tag}");
362}
363
364/* See #10582 - JOSM supported this tag as "don't upload this" feature, before the introduction of upload flag at layer level */
365*[/josm\/ignore/] {
366 throwError: tr("{0} is deprecated. Please delete this object and use a private layer instead", "{0.key}");
367 fixDeleteObject: this;
368}
369
370/* see #8281 */
371*[sport=diving] {
372 throwWarning: tr("{0} is deprecated", "{0.tag}");
373 suggestAlternative: "sport=scuba_diving";
374 suggestAlternative: "sport=cliff_diving";
375}
376
377/* see #8281 */
378*[parking=park_and_ride] {
379 throwWarning: tr("{0} is deprecated", "{0.tag}");
380 suggestAlternative: "amenity=parking + park_ride=yes";
381 fixRemove: "parking";
382 fixAdd: "amenity=parking";
383 fixAdd: "park_ride=yes";
384}
385
386/* see #10661, #10837, #11737, #12771 */
387*[traffic_calming=yes],
388*[access=restricted],
389*[barrier=yes],
390*[aerialway=yes][!public_transport],
391*[amenity=yes],
392*[leisure=yes],
393*[shop="*"],
394*[craft=yes],
395*[service=yes],
396*[place=yes] {
397 throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by a specific value.", "{0.key}", "{0.value}");
398}
399
400/* see #10693 - http://wiki.openstreetmap.org/wiki/Proposed_features/drop_recommendation_for_place_name , #10837 */
401*[place_name][!name] {
402 throwWarning: tr("{0} should be replaced with {1}", "{0.key}", "{1.key}");
403 fixChangeKey: "place_name => name";
404}
405*[place][place_name = *name] {
406 throwWarning: tr("{0} = {1}; remove {0}", "{1.key}", "{1.value}");
407 fixRemove: "{1.key}";
408}
409
410way[sidewalk=yes] {
411 throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by ''left'', ''right'' or ''both''.", "{0.key}", "{0.value}");
412}
413
414*[waterway=water_point] {
415 throwWarning: tr("{0} is deprecated", "{0.tag}");
416 suggestAlternative: "amenity=water_point";
417 fixChangeKey: "waterway => amenity";
418}
419*[waterway=waste_disposal] {
420 throwWarning: tr("{0} is deprecated", "{0.tag}");
421 suggestAlternative: "amenity=waste_disposal";
422 fixChangeKey: "waterway => amenity";
423}
424*[waterway=mooring] {
425 throwWarning: tr("{0} is deprecated", "{0.tag}");
426 suggestAlternative: "mooring=yes";
427 fixRemove: "waterway";
428 fixAdd: "mooring=yes";
429}
430
431/* see #10837 */
432*[building][levels],
433*[building:part=yes][levels] {
434 throwWarning: tr("{0} is deprecated", "{1.key}");
435 suggestAlternative: "building:levels";
436 fixChangeKey: "levels => building:levels";
437}
438
439/* see #10691 */
440*[protected_class] {
441 throwWarning: tr("{0} is deprecated", "{0.key}");
442 suggestAlternative: "protect_class";
443 fixChangeKey: "protected_class => protect_class";
444}
445
446/* see #11070 */
447*[lock=unknown],
448*[hide=unknown],
449*[shelter=unknown],
450*[access=unknown],
451*[capacity:parent=unknown],
452*[capacity:women=unknown],
453*[capacity:disabled=unknown],
454*[crossing=unknown],
455*[foot=unknown] {
456 throwWarning: tr("Unspecific tag {0}", "{0.tag}");
457}
458
459/* unclear definition, see #11183 */
460*[sport=skiing][!piste:type] {
461 throwWarning: tr("Definition of {0} is unclear", "{0.tag}");
462 suggestAlternative: {1.key};
463}
464
465/* see #11223 */
466*[waterway=wadi] {
467 throwWarning: tr("{0} is deprecated", "{0.tag}");
468 suggestAlternative: "{0.key}=* + intermittent=yes";
469 suggestAlternative: "natural=valley";
470}
471
472/* see #10346 */
473way[oneway=1] {
474 throwWarning: tr("{0} is deprecated", "{0.tag}");
475 suggestAlternative: "oneway=yes";
476 fixAdd: "oneway=yes";
477}
478
479/* see #11329 */
480way[oneway=-1] {
481 throwWarning: tr("{0} is not recommended. Use the Reverse Ways function from the Tools menu.", "{0.tag}");
482}
483
484*[drinkable] {
485 throwWarning: tr("{0} is deprecated", "{0.key}");
486 suggestAlternative: "drinking_water";
487}
488
489/* see #10329 */
490*[color][!colour] {
491 throwWarning: tr("{0} is deprecated", "{0.key}");
492 suggestAlternative: "colour";
493 fixChangeKey: "color => colour";
494}
495*[color][colour][tag(color)=tag(colour)] {
496 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
497 set samecolor;
498 fixRemove: "color";
499}
500*[color][colour]!.samecolor {
501 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
502}
503*[/:color/]{
504 throwWarning: tr("{0} is deprecated", "{0.key}");
505 suggestAlternative: ":colour";
506}
507*[/color:/] {
508 throwWarning: tr("{0} is deprecated", "{0.key}");
509 suggestAlternative: "colour:";
510}
511
512/* see #11234 */
513*[/=|\+|\/|&|<|>|;|'|"|%|#|@|\\|,|\.|\{|\}|\?|\*|\^|\$/] {
514 throwWarning: tr("key with uncommon character");
515}
516
517/* see #11330 */
518*[/^.$/],
519node[/^..$/],
520way[/^..$/],
521relation[/^..$/][!to] {
522 throwWarning: tr("uncommon short key");
523}
524
525/* see #11344 */
526*[tower=air_to_ground] {
527 throwWarning: tr("{0} is deprecated", "{0.tag}");
528 suggestAlternative: "tower=transition";
529 fixAdd: "tower=transition";
530}
531*[pole=air_to_ground] {
532 throwWarning: tr("{0} is deprecated", "{0.tag}");
533 suggestAlternative: "pole=transition";
534 fixAdd: "pole=transition";
535}
536
537/* see #11439 */
538*[sport=hockey] {
539 throwWarning: tr("{0} is inaccurate", "{0.tag}");
540 suggestAlternative: "sport=field_hockey";
541 suggestAlternative: "sport=ice_hockey";
542}
543
544/* see #11471 */
545*[sport=billard],
546*[sport=billards],
547*[sport=billiard] {
548 throwWarning: tr("{0} is deprecated", "{0.tag}");
549 suggestAlternative: "sport=billiards";
550 fixAdd: "sport=billiards";
551}
552
553/* see #11499 */
554*[payment:credit_cards=yes] {
555 throwWarning: tr("{0} is inaccurate", "{0.tag}");
556 suggestAlternative: "payment:mastercard=yes";
557 suggestAlternative: "payment:visa=yes";
558 suggestAlternative: "...";
559}
560*[payment:debit_cards=yes] {
561 throwWarning: tr("{0} is inaccurate", "{0.tag}");
562 suggestAlternative: "payment:maestro=yes";
563 suggestAlternative: "payment:girocard=yes";
564 suggestAlternative: "...";
565}
566*[payment:electronic_purses=yes] {
567 throwWarning: tr("{0} is inaccurate", "{0.tag}");
568 suggestAlternative: "payment:ep_geldkarte=yes";
569 suggestAlternative: "payment:ep_quick=yes";
570 suggestAlternative: "...";
571}
572*[payment:cryptocurrencies=yes] {
573 throwWarning: tr("{0} is inaccurate", "{0.tag}");
574 suggestAlternative: "payment:bitcoin=yes";
575 suggestAlternative: "payment:litecoin=yes";
576 suggestAlternative: "...";
577}
578
579/* see #8717 */
580*[kp][highway=milestone],
581*[kp][railway=milestone],
582*[kp][waterway=milestone] {
583 throwWarning: tr("{0} is deprecated", "{0.key}");
584 suggestAlternative: "distance";
585 fixChangeKey: "kp => distance";
586}
587*[pk][highway=milestone],
588*[pk][railway=milestone],
589*[pk][waterway=milestone] {
590 throwWarning: tr("{0} is deprecated", "{0.key}");
591 suggestAlternative: "distance";
592 fixChangeKey: "pk => distance";
593}
594
595*[postcode] {
596 throwWarning: tr("{0} is deprecated", "{0.key}");
597 suggestAlternative: "addr:postcode";
598 suggestAlternative: "postal_code";
599}
600
601*[water=intermittent] {
602 throwWarning: tr("{0} is deprecated", "{0.tag}");
603 suggestAlternative: "intermittent=yes";
604 fixRemove: "water";
605 fixAdd: "intermittent=yes";
606}
607
608*[type][man_made=pipeline],
609*[type][pipeline=marker] {
610 throwWarning: tr("{0} is deprecated", "{0.key}");
611 suggestAlternative: "substance";
612 fixChangeKey: "type => substance";
613}
614
615*[landuse=farm] {
616 throwWarning: tr("{0} is deprecated", "{0.tag}");
617 suggestAlternative: "landuse=farmland";
618 suggestAlternative: "landuse=farmyard";
619}
620
621/* #12135 comment:11 */
622*[seamark=buoy]["seamark:type"=~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
623 throwWarning: tr("{0} is deprecated", "{0.tag}");
624 suggestAlternative: "{1.tag}";
625 fixRemove: "seamark";
626}
627*[seamark=buoy]["seamark:type"!~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
628 throwWarning: tr("{0} is deprecated", "{0.tag}");
629 suggestAlternative: "{1.tag}";
630}
631/* #12135 - Tag removed rom rendering https://github.com/gravitystorm/openstreetmap-carto/pull/1830 */
632*[landuse=conservation] {
633 throwWarning: tr("{0} is deprecated", "{0.tag}");
634 suggestAlternative: "boundary=protected_area";
635 fixAdd: "boundary=protected_area";
636 fixRemove: "landuse";
637}
638
639/* #12205 */
640*[amenity=kiosk] {
641 throwWarning: tr("{0} is deprecated", "{0.tag}");
642 suggestAlternative: "shop=kiosk";
643 fixChangeKey: "amenity => shop";
644}
645*[amenity=shop] {
646 throwWarning: tr("{0} is deprecated", "{0.tag}");
647 suggestAlternative: "shop=*";
648}
649*[shop=fishmonger] {
650 throwWarning: tr("{0} is deprecated", "{0.tag}");
651 suggestAlternative: "shop=seafood";
652 fixAdd: "shop=seafood";
653}
654*[shop=fish] {
655 throwWarning: tr("{0} is deprecated", "{0.tag}");
656 suggestAlternative: "shop=seafood";
657 suggestAlternative: "shop=pet";
658 suggestAlternative: "shop=fishing";
659}
660*[shop=betting] {
661 throwWarning: tr("{0} is deprecated", "{0.tag}");
662 suggestAlternative: "shop=bookmaker";
663 suggestAlternative: "shop=lottery";
664 suggestAlternative: "amenity=casino";
665 suggestAlternative: "leisure=amusement_arcade";
666 suggestAlternative: "leisure=adult_gaming_centre";
667 suggestAlternative: "amenity=gambling";
668}
669*[shop=perfume] {
670 throwWarning: tr("{0} is deprecated", "{0.tag}");
671 suggestAlternative: "shop=perfumery";
672 fixAdd: "shop=perfumery";
673}
674*[amenity=exercise_point] {
675 throwWarning: tr("{0} is deprecated", "{0.tag}");
676 suggestAlternative: "leisure=fitness_station";
677 fixAdd: "leisure=fitness_station";
678 fixRemove: "amenity";
679}
680*[shop=auto_parts] {
681 throwWarning: tr("{0} is deprecated", "{0.tag}");
682 suggestAlternative: "shop=car_parts";
683 fixAdd: "shop=car_parts";
684}
685*[amenity=car_repair] {
686 throwWarning: tr("{0} is deprecated", "{0.tag}");
687 suggestAlternative: "shop=car_repair";
688 fixChangeKey: "amenity => shop";
689}
690
691/* #12311 */
692*[amenity=studio][type=audio],
693*[amenity=studio][type=radio],
694*[amenity=studio][type=television],
695*[amenity=studio][type=video] {
696 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
697 suggestAlternative: "studio";
698 fixChangeKey: "type => studio";
699}
700
701/* #11507, #12297 */
702*[power=cable_distribution_cabinet] {
703 throwWarning: tr("{0} is deprecated", "{0.tag}");
704 suggestAlternative: "man_made=street_cabinet + street_cabinet=power";
705 fixAdd: "man_made=street_cabinet";
706 fixAdd: "street_cabinet=power";
707 fixRemove: "power";
708}
709
710/* #12276 */
711*[man_made=well] {
712 throwWarning: tr("{0} is deprecated", "{0.tag}");
713 suggestAlternative: "man_made=water_well";
714 suggestAlternative: "man_made=petroleum_well";
715}
716*[amenity=dog_bin],
717*[amenity=dog_waste_bin] {
718 throwWarning: tr("{0} is deprecated", "{0.tag}");
719 suggestAlternative: "amenity=waste_basket + waste=dog_excrement + vending=excrement_bags";
720 fixAdd: "amenity=waste_basket";
721 fixAdd: "waste=dog_excrement";
722 fixAdd: "vending=excrement_bags";
723}
724*[amenity=artwork] {
725 throwWarning: tr("{0} is deprecated", "{0.tag}");
726 suggestAlternative: "tourism=artwork";
727 fixAdd: "tourism=artwork";
728 fixRemove: "amenity";
729}
730*[amenity=community_center] {
731 throwWarning: tr("{0} is deprecated", "{0.tag}");
732 suggestAlternative: "amenity=community_centre";
733 fixAdd: "amenity=community_centre";
734}
735*[man_made=cut_line] {
736 throwWarning: tr("{0} is deprecated", "{0.tag}");
737 suggestAlternative: "man_made=cutline";
738 fixAdd: "man_made=cutline";
739}
740*[amenity=park] {
741 throwWarning: tr("{0} is deprecated", "{0.tag}");
742 suggestAlternative: "leisure=park";
743 fixAdd: "leisure=park";
744 fixRemove: "amenity";
745}
746*[amenity=hotel] {
747 throwWarning: tr("{0} is deprecated", "{0.tag}");
748 suggestAlternative: "tourism=hotel";
749 fixAdd: "tourism=hotel";
750 fixRemove: "amenity";
751}
752*[shop=window],
753*[shop=windows] {
754 throwWarning: tr("{0} is deprecated", "{0.tag}");
755 suggestAlternative: "craft=window_construction";
756 fixAdd: "craft=window_construction";
757 fixRemove: "shop";
758}
759*[amenity=education] {
760 throwWarning: tr("{0} is deprecated", "{0.tag}");
761 suggestAlternative: "amenity=college";
762 suggestAlternative: "amenity=school";
763 suggestAlternative: "amenity=university";
764}
765*[shop=gallery] {
766 throwWarning: tr("{0} is deprecated", "{0.tag}");
767 suggestAlternative: "shop=art";
768 fixAdd: "shop=art";
769}
770*[shop=gambling],
771*[leisure=gambling] {
772 throwWarning: tr("{0} is deprecated", "{0.tag}");
773 suggestAlternative: "shop=bookmaker";
774 suggestAlternative: "shop=lottery";
775 suggestAlternative: "amenity=casino";
776 suggestAlternative: "leisure=amusement_arcade";
777 suggestAlternative: "amenity=gambling";
778}
779*[office=real_estate_agent] {
780 throwWarning: tr("{0} is deprecated", "{0.tag}");
781 suggestAlternative: "office=estate_agent ";
782 fixAdd: "office=estate_agent ";
783}
784*[shop=glass] {
785 throwWarning: tr("{0} is deprecated", "{0.tag}");
786 suggestAlternative: "shop=glaziery";
787 suggestAlternative: "craft=glaziery";
788}
789*[amenity=proposed],
790*[amenity=proposed],
791*[amenity=disused],
792*[shop=disused],
793*[historic=abandoned] {
794 throwWarning: tr("{0} is deprecated. Use the {1}: key prefix instead.", "{0.tag}", "{0.value}");
795}
796
797/* #12431 */
798*[amenity=swimming_pool] {
799 throwWarning: tr("{0} is deprecated", "{0.tag}");
800 suggestAlternative: "leisure=swimming_pool";
801 fixChangeKey: "amenity => leisure";
802}
803
804/* #12494 */
805*[/^[^t][^i][^g].+_[0-9]$/][!/^note_[0-9]$/][!/^description_[0-9]$/] {
806 throwOther: tr("questionable key (ending with a number): {0}", "{0.key}");
807} /*should not warn for key tiger:name_base_1 */
808
809/* #12500 */
810*[sport=skating] {
811 throwWarning: tr("{0} is deprecated", "{0.tag}");
812 suggestAlternative: "sport=ice_skating";
813 suggestAlternative: "sport=roller_skating";
814}
815
816way[barrier=wall][type=noise_barrier][!wall],
817way[barrier=wall][type=noise_barrier][wall=noise_barrier] {
818 throwWarning: tr("{0} is deprecated", "{1.tag}");
819 suggestAlternative: "wall=noise_barrier";
820 fixChangeKey: "type => wall";
821}
822way[barrier=wall][type=noise_barrier][wall][wall!=noise_barrier] {
823 throwWarning: tr("{0} is deprecated", "{1.tag}");
824 suggestAlternative: "wall=noise_barrier";
825}
826
827/* #8978, 12588 */
828*[amenity=public_building] {
829 throwWarning: tr("{0} is deprecated", "{0.tag}");
830 suggestAlternative: "amenity=townhall";
831 suggestAlternative: "amenity=community_centre";
832 suggestAlternative: "amenity=hospital";
833 suggestAlternative: "leisure=sports_centre";
834 suggestAlternative: "office=government";
835 suggestAlternative: "building=hospital";
836 suggestAlternative: "building=public";
837 suggestAlternative: "...";
838}
839
840/* #12708 */
841*[vending=news_papers] {
842 throwWarning: tr("{0} is deprecated", "{0.tag}");
843 suggestAlternative: "vending=newspapers";
844 fixAdd: "vending=newspapers";
845}
846
847/* #12771 */
848*[service=drive_through] {
849 throwWarning: tr("{0} is deprecated", "{0.tag}");
850 suggestAlternative: "service=drive-through";
851 fixAdd: "service=drive-through";
852}
853
854/* #12771 */
855way[highway=service][service][service !~ /^(alley|drive-through|drive_through|driveway|emergency_access|parking_aisle|rest_area|yes)$/], /* drive_through and yes have special warnings */
856way[railway=rail][service][service !~ /^(crossover|siding|spur|yard)$/],
857way[waterway=canal][service][service !~ /^(irrigation|transportation|water_power)$/] {
858 throwWarning: tr("The key {0} has an uncommon value.", "{1.key}");
859}
860
861/* #13008 */
862*[name:botanical] {
863 throwWarning: tr("{0} is deprecated", "{0.key}");
864 suggestAlternative: "species";
865}
866
867/* #13101 */
868node[pole=transition] {
869 throwWarning: tr("{0} is deprecated", "{0.tag}");
870 suggestAlternative: "location:transition=yes";
871 fixAdd: "location:transition=yes";
872 fixRemove: "pole";
873}
874node[tower=transition] {
875 throwWarning: tr("{0} is deprecated", "{0.tag}");
876 suggestAlternative: "location:transition=yes";
877 fixAdd: "location:transition=yes";
878 fixRemove: "tower";
879}
880
881/* #13138 */
882area[landuse=pond] {
883 throwWarning: tr("{0} is deprecated", "{0.tag}");
884 suggestAlternative: "natural=water + water=pond";
885 fixAdd: "natural=water";
886 fixAdd: "water=pond";
887 fixRemove: "landuse";
888}
Note: See TracBrowser for help on using the repository browser.