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

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

fix #13138 - add warnings for water without natural=water and landuse=pond

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