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

Last change on this file since 11133 was 11133, checked in by Klumbumbus, 4 years ago

different small adjustments: allow leisure=horse_riding as physical feature for sport=*; print the key with the uncommon character; leisure=slipway node should be connected to a way; update lanes preset and ignore list

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