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

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

see #12404 - typo

  • Property svn:eol-style set to native
File size: 22.8 KB
RevLine 
[6506]1*[barrier=wire_fence] {
[9551]2 throwWarning: tr("{0} is deprecated", "{0.tag}");
[6506]3 fixAdd: "barrier=fence";
4 fixAdd: "fence_type=chain_link";
[6512]5 assertMatch: "way barrier=wire_fence";
6 assertNoMatch: "way barrier=fence";
[6506]7}
8
9*[barrier=wood_fence] {
[9551]10 throwWarning: tr("{0} is deprecated", "{0.tag}");
11 suggestAlternative: "barrier=fence + fence_type=wood";
[6506]12 fixAdd: "barrier=fence";
13 fixAdd: "fence_type=wood";
14}
15
16*[highway=ford] {
[9551]17 throwWarning: tr("{0} is deprecated", "{0.tag}");
18 suggestAlternative: "ford=yes";
[6506]19 fixRemove: "highway";
20 fixAdd: "ford=yes";
21}
22
23*[class] {
24 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
[6689]25 throwWarning: tr("{0} is deprecated", "{0.key}");
[6506]26 suggestAlternative: "highway";
27}
28
29*[highway=stile] {
30 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
[9551]31 throwWarning: tr("{0} is deprecated", "{0.tag}");
32 suggestAlternative: "barrier=stile";
[6506]33 fixRemove: "highway";
34 fixAdd: "barrier=stile";
35}
36
37*[highway=incline] {
38 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
[9551]39 throwWarning: tr("{0} is deprecated", "{0.tag}");
[6506]40 suggestAlternative: "incline";
41}
42
43*[highway=incline_steep] {
44 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
[9551]45 throwWarning: tr("{0} is deprecated", "{0.tag}");
[6506]46 suggestAlternative: "incline";
47}
48
49*[highway=unsurfaced] {
50 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
[9551]51 throwWarning: tr("{0} is deprecated", "{0.tag}");
52 suggestAlternative: "highway=* + surface=unpaved";
[6506]53 fixAdd: "highway=road";
[8161]54 fixAdd: "surface=unpaved";
[6506]55}
56
57*[landuse=wood] {
58 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
[9551]59 throwWarning: tr("{0} is deprecated", "{0.tag}");
[6506]60 suggestAlternative: "landuse=forest";
61 suggestAlternative: "natural=wood";
62}
63
64*[natural=marsh] {
65 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
[9551]66 throwWarning: tr("{0} is deprecated", "{0.tag}");
67 suggestAlternative: "natural=wetland + wetland=marsh";
[6506]68 fixAdd: "natural=wetland";
69 fixAdd: "wetland=marsh";
70}
71
72*[highway=byway] {
73 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
[9551]74 throwWarning: tr("{0} is deprecated", "{0.tag}");
[6506]75}
76
77*[power_source] {
78 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
[6689]79 throwWarning: tr("{0} is deprecated", "{0.key}");
[6506]80 suggestAlternative: "generator:source";
81}
82
83*[power_rating] {
84 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
[6689]85 throwWarning: tr("{0} is deprecated", "{0.key}");
[6506]86 suggestAlternative: "generator:output";
87}
88
[7600]89*[shop=antique] {
[9551]90 throwWarning: tr("{0} is deprecated", "{0.tag}");
91 suggestAlternative: "shop=antiques";
[7600]92 fixAdd: "shop=antiques";
93}
94
95*[shop=bags] {
[9551]96 throwWarning: tr("{0} is deprecated", "{0.tag}");
97 suggestAlternative: "shop=bag";
[7600]98 fixAdd: "shop=bag";
99}
100
[6506]101*[shop=organic] {
102 /* from http://wiki.openstreetmap.org/wiki/Tag:shop=organic */
[9551]103 throwWarning: tr("{0} is deprecated", "{0.tag}");
104 suggestAlternative: "shop=supermarket + organic=only";
[6506]105 fixAdd: "shop=supermarket";
106 fixAdd: "organic=only";
107}
[7600]108
109*[shop=pets] {
[9551]110 throwWarning: tr("{0} is deprecated", "{0.tag}");
111 suggestAlternative: "shop=pet";
[7600]112 fixAdd: "shop=pet";
113}
114
115*[shop=pharmacy] {
[9551]116 throwWarning: tr("{0} is deprecated", "{0.tag}");
117 suggestAlternative: "amenity=pharmacy";
[7600]118 fixChangeKey: "shop => amenity";
119}
120
[6506]121*[bicycle_parking=sheffield] {
122 /* from http://wiki.openstreetmap.org/wiki/Key:bicycle_parking */
[9551]123 throwWarning: tr("{0} is deprecated", "{0.tag}");
124 suggestAlternative: "bicycle_parking=stands";
[6506]125 fixAdd: "bicycle_parking=stands";
126}
127
128*[amenity=emergency_phone] {
129 /* http://wiki.openstreetmap.org/wiki/Tag:emergency=phone */
[9551]130 throwWarning: tr("{0} is deprecated", "{0.tag}");
131 suggestAlternative: "emergency=phone";
[6506]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 */
[9551]138 throwWarning: tr("{0} is deprecated", "{0.tag}");
139 suggestAlternative: "sport=gaelic_games";
[6506]140 fixAdd: "sport=gaelic_games";
141}
142
143*[power=station] {
144 /* see #8847 / #8961 - http://wiki.openstreetmap.org/wiki/Tag:power=station */
[9551]145 throwWarning: tr("{0} is deprecated", "{0.tag}");
[6506]146 suggestAlternative: "power=plant";
[6688]147 suggestAlternative: "power=substation";
[6506]148}
[6689]149
150*[power=sub_station] {
[9551]151 throwWarning: tr("{0} is deprecated", "{0.tag}");
152 suggestAlternative: "power=substation";
[6689]153 fixAdd: "power=substation";
154}
[6506]155
156*[generator:method=dam] {
[9551]157 throwWarning: tr("{0} is deprecated", "{0.tag}");
158 suggestAlternative: "generator:method=water-storage";
[6506]159 fixAdd: "generator:method=water-storage";
160}
161
162*[generator:method=pumped-storage] {
[9551]163 throwWarning: tr("{0} is deprecated", "{0.tag}");
164 suggestAlternative: "generator:method=water-pumped-storage";
[6506]165 fixAdd: "generator:method=water-pumped-storage";
166}
167
168*[generator:method=pumping] {
[9551]169 throwWarning: tr("{0} is deprecated", "{0.tag}");
170 suggestAlternative: "generator:method=water-pumped-storage";
[6506]171 fixAdd: "generator:method=water-pumped-storage";
172}
173
174*[fence_type=chain] {
175 /* see #8962 - http://wiki.openstreetmap.org/wiki/Key:fence_type */
[9551]176 throwWarning: tr("{0} is deprecated", "{0.tag}");
[6506]177 suggestAlternative: "barrier=chain";
[9552]178 suggestAlternative: "barrier=fence + fence_type=chain_link";
[6506]179}
180
181*[building=entrance] {
182 /* see #9000 - http://wiki.openstreetmap.org/wiki/Key:entrance */
[9551]183 throwWarning: tr("{0} is deprecated", "{0.tag}");
[6506]184 suggestAlternative: "entrance";
185}
186
187*[board_type=board] {
188 /* see #9213 - Useless tag proposed in internal preset for years */
[9551]189 throwWarning: tr("{0} is deprecated", "{0.tag}");
[6506]190 fixRemove: "board_type";
191}
192
193*[man_made=measurement_station] {
194 /* see #8434 - http://wiki.openstreetmap.org/wiki/Proposed_features/monitoring_station */
[9551]195 throwWarning: tr("{0} is deprecated", "{0.tag}");
196 suggestAlternative: "man_made=monitoring_station";
[6506]197 fixAdd: "man_made=monitoring_station";
198}
199
200*[measurement=water_level] {
[9551]201 throwWarning: tr("{0} is deprecated", "{0.tag}");
202 suggestAlternative: "monitoring:water_level=yes";
[6506]203 fixRemove: "measurement";
204 fixAdd: "monitoring:water_level=yes";
205}
206
207*[measurement=weather] {
[9551]208 throwWarning: tr("{0} is deprecated", "{0.tag}");
209 suggestAlternative: "monitoring:weather=yes";
[6506]210 fixRemove: "measurement";
211 fixAdd: "monitoring:weather=yes";
212}
213
214*[measurement=seismic] {
[9551]215 throwWarning: tr("{0} is deprecated", "{0.tag}");
216 suggestAlternative: "monitoring:seismic_activity=yes";
[6506]217 fixRemove: "measurement";
218 fixAdd: "monitoring:seismic_activity=yes";
219}
220
221*[monitoring:river_level] {
[6689]222 throwWarning: tr("{0} is deprecated", "{0.key}");
[9551]223 suggestAlternative: "monitoring:water_level";
[6506]224 fixChangeKey: "monitoring:river_level => monitoring:water_level";
225}
[6605]226
[7449]227*[stay] {
228 throwWarning: tr("{0} is deprecated", "{0.key}");
[9551]229 suggestAlternative: "maxstay";
[7449]230 fixChangeKey: "stay => maxstay";
231}
232
[6658]233*[emergency=aed] {
234 /* see #9554 - http://wiki.openstreetmap.org/wiki/Proposed_features/automated_external_defibrillator */
[9551]235 throwWarning: tr("{0} is deprecated", "{0.tag}");
236 suggestAlternative: "emergency=defibrillator";
[6658]237 fixAdd: "emergency=defibrillator";
238}
239
[6605]240/* from http://wiki.openstreetmap.org/wiki/Conditional_restrictions#Deprecated_tags */
[6645]241*[day_on][!restriction],
242*[day_off][!restriction],
243*[date_on][!restriction],
244*[date_off][!restriction],
245*[hour_on][!restriction],
246*[hour_off][!restriction] {
[6605]247 throwWarning: tr("{0} is deprecated", "{0.key}");
248 suggestAlternative: "*:conditional";
249 assertMatch: "node day_on=0-12";
250}
[7105]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}
[7106]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}
[7197]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
[9088]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
[7924]277/* see #10107, #10108, #10929 - http://wiki.openstreetmap.org/wiki/Proposed_features/leaftype#Features.2FPages_affected */
[7222]278*[wood=deciduous],
279*[type=broad_leaved],
280*[type=broad_leafed] {
[9551]281 throwWarning: tr("{0} is deprecated", "{0.tag}");
282 suggestAlternative: "leaf_type=broadleaved";
[7222]283 fixRemove: "{0.key}";
284 fixAdd: "leaf_type=broadleaved";
[9557]285}
[7222]286
[7924]287*[wood=coniferous],
288*[type=coniferous],
289*[type=conifer] {
[9551]290 throwWarning: tr("{0} is deprecated", "{0.tag}");
291 suggestAlternative: "leaf_type=needleleaved";
[7924]292 fixRemove: "{0.key}";
[7222]293 fixAdd: "leaf_type=needleleaved";
294}
295
296*[wood=mixed] {
[9551]297 throwWarning: tr("{0} is deprecated", "{0.tag}");
298 suggestAlternative: "leaf_type=mixed";
[7222]299 fixRemove: "wood";
300 fixAdd: "leaf_type=mixed";
301}
302
303*[wood=evergreen],
304*[type=evergreen] {
[9551]305 throwWarning: tr("{0} is deprecated", "{0.tag}");
306 suggestAlternative: "leaf_cycle=evergreen";
[7222]307 fixRemove: "{0.key}";
308 fixAdd: "leaf_cycle=evergreen";
309}
310
311*[type=deciduous],
312*[type=deciduos] {
[9551]313 throwWarning: tr("{0} is deprecated", "{0.tag}");
314 suggestAlternative: "leaf_cycle=deciduous";
[7222]315 fixRemove: "type";
316 fixAdd: "leaf_cycle=deciduous";
317}
[7391]318
319*[natural=land] {
[9551]320 throwWarning: tr("{0} is deprecated. Please use instead a multipolygon.", "{0.tag}");
[7391]321 assertMatch: "way natural=land";
322}
[7490]323
324/* see #10447 - https://wiki.openstreetmap.org/wiki/Proposed_features/Bridge_types#Deprecated_bridge_key_values */
325*[bridge=causeway] {
[9551]326 throwWarning: tr("{0} is deprecated", "{0.tag}");
[7490]327 suggestAlternative: "ford=yes";
328 suggestAlternative: "bridge=low_water_crossing";
329 suggestAlternative: "embankment=yes";
330}
331
332*[bridge=swing] {
[9551]333 throwWarning: tr("{0} is deprecated", "{0.tag}");
[7490]334 suggestAlternative: "bridge:movable=swing";
335 suggestAlternative: "bridge:structure=simple-suspension";
336}
337
338*[bridge=suspension] {
[9551]339 throwWarning: tr("{0} is deprecated", "{0.tag}");
340 suggestAlternative: "bridge=yes + bridge:structure=suspension";
[7490]341 fixAdd: "bridge=yes";
342 fixAdd: "bridge:structure=suspension";
343}
[7599]344
[7620]345/* See #10530 - Incorrect tag proposed in internal preset for years */
[7623]346*[fee=interval],
347*[lit=interval],
348*[supervised=interval] {
[7647]349 throwWarning: tr("{0} is deprecated. Please specify interval by using opening_hours syntax", "{0.tag}");
[7620]350}
351
[7599]352/* See #10582 - JOSM supported this tag as "don't upload this" feature, before the introduction of upload flag at layer level */
353*[/josm\/ignore/] {
354 throwError: tr("{0} is deprecated. Please delete this object and use a private layer instead", "{0.key}");
355 fixDeleteObject: this;
356}
[7630]357
358/* see #8281 */
359*[sport=diving] {
[7647]360 throwWarning: tr("{0} is deprecated", "{0.tag}");
[7630]361 suggestAlternative: "sport=scuba_diving";
362 suggestAlternative: "sport=cliff_diving";
[7635]363}
364
365/* see #8281 */
366*[parking=park_and_ride] {
[7647]367 throwWarning: tr("{0} is deprecated", "{0.tag}");
[9551]368 suggestAlternative: "amenity=parking + park_ride=yes";
[7635]369 fixRemove: "parking";
370 fixAdd: "amenity=parking";
371 fixAdd: "park_ride=yes";
[7647]372}
373
[8630]374/* see #10661, #10837, #11737 */
[9506]375*[traffic_calming=yes],
[8699]376*[access=restricted],
[7818]377*[barrier=yes],
[8630]378*[aerialway=yes][!public_transport],
[7818]379*[amenity=yes],
[9435]380*[shop="*"],
[7818]381*[place=yes] {
[7647]382 throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by a specific value.", "{0.key}", "{0.value}");
[7697]383}
384
[7818]385/* see #10693 - http://wiki.openstreetmap.org/wiki/Proposed_features/drop_recommendation_for_place_name , #10837 */
[7697]386*[place_name][!name] {
387 throwWarning: tr("{0} should be replaced with {1}", "{0.key}", "{1.key}");
388 fixChangeKey: "place_name => name";
389}
[7818]390*[place][place_name = *name] {
391 throwWarning: tr("{0} = {1}; remove {0}", "{1.key}", "{1.value}");
392 fixRemove: "{1.key}";
393}
[7707]394
395way[sidewalk=yes] {
396 throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by ''left'', ''right'' or ''both''.", "{0.key}", "{0.value}");
[7737]397}
398
[9551]399*[waterway=water_point] {
400 throwWarning: tr("{0} is deprecated", "{0.tag}");
401 suggestAlternative: "amenity=water_point";
402 fixChangeKey: "waterway => amenity";
403}
[7737]404*[waterway=waste_disposal] {
405 throwWarning: tr("{0} is deprecated", "{0.tag}");
[9551]406 suggestAlternative: "amenity=waste_disposal";
[7737]407 fixChangeKey: "waterway => amenity";
408}
409*[waterway=mooring] {
410 throwWarning: tr("{0} is deprecated", "{0.tag}");
[9551]411 suggestAlternative: "mooring=yes";
[7737]412 fixRemove: "waterway";
413 fixAdd: "mooring=yes";
[7818]414}
415
416/* see #10837 */
[7969]417*[building][levels],
418*[building:part=yes][levels] {
[7818]419 throwWarning: tr("{0} is deprecated", "{1.key}");
420 suggestAlternative: "building:levels";
421 fixChangeKey: "levels => building:levels";
[7973]422}
423
424/* see #10691 */
425*[protected_class] {
426 throwWarning: tr("{0} is deprecated", "{0.key}");
427 suggestAlternative: "protect_class";
428 fixChangeKey: "protected_class => protect_class";
[8008]429}
430
431/* see #11070 */
432*[lock=unknown],
433*[hide=unknown],
434*[shelter=unknown],
435*[access=unknown],
436*[capacity:parent=unknown],
437*[capacity:women=unknown],
438*[capacity:disabled=unknown],
439*[crossing=unknown],
440*[foot=unknown] {
[8023]441 throwWarning: tr("Unspecific tag {0}", "{0.tag}");
[8121]442}
443
444/* unclear definition, see #11183 */
445*[sport=skiing][!piste:type] {
446 throwWarning: tr("Definition of {0} is unclear", "{0.tag}");
447 suggestAlternative: {1.key};
[8135]448}
449
450/* see #11223 */
451*[waterway=wadi] {
452 throwWarning: tr("{0} is deprecated", "{0.tag}");
453 suggestAlternative: "{0.key}=* + intermittent=yes";
454 suggestAlternative: "natural=valley";
[8137]455}
456
457/* see #10346 */
458way[oneway=1] {
459 throwWarning: tr("{0} is deprecated", "{0.tag}");
460 suggestAlternative: "oneway=yes";
461 fixAdd: "oneway=yes";
[8165]462}
463
[8183]464/* see #11329 */
465way[oneway=-1] {
466 throwWarning: tr("{0} is not recommended. Use the Reverse Ways function from the Tools menu.", "{0.tag}");
467}
468
[8165]469*[drinkable] {
470 throwWarning: tr("{0} is deprecated", "{0.key}");
471 suggestAlternative: "drinking_water";
[8184]472}
473
474/* see #10329 */
475*[color][!colour] {
476 throwWarning: tr("{0} is deprecated", "{0.key}");
477 suggestAlternative: "colour";
478 fixChangeKey: "color => colour";
479}
480*[color][colour][tag(color)=tag(colour)] {
481 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
482 set samecolor;
483 fixRemove: "color";
484}
485*[color][colour]!.samecolor {
486 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
[8185]487}
[8204]488*[/:color/]{
489 throwWarning: tr("{0} is deprecated", "{0.key}");
490 suggestAlternative: ":colour";
491}
492*[/color:/] {
493 throwWarning: tr("{0} is deprecated", "{0.key}");
494 suggestAlternative: "colour:";
495}
[8185]496
497/* see #11234 */
[8544]498*[/=|\+|\/|&|<|>|;|'|"|%|#|@|\\|,|\.|\{|\}|\?|\*|\^|\$/] {
[8185]499 throwWarning: tr("key with uncommon character");
[8192]500}
501
502/* see #11330 */
503*[/^.$/],
[8204]504node[/^..$/],
505way[/^..$/],
506relation[/^..$/][!to] {
[8192]507 throwWarning: tr("uncommon short key");
[8204]508}
509
510/* see #11344 */
511*[tower=air_to_ground] {
512 throwWarning: tr("{0} is deprecated", "{0.tag}");
513 suggestAlternative: "tower=transition";
514 fixAdd: "tower=transition";
515}
516*[pole=air_to_ground] {
517 throwWarning: tr("{0} is deprecated", "{0.tag}");
518 suggestAlternative: "pole=transition";
519 fixAdd: "pole=transition";
[8383]520}
521
522/* see #11439 */
523*[sport=hockey] {
524 throwWarning: tr("{0} is inaccurate", "{0.tag}");
525 suggestAlternative: "sport=field_hockey";
526 suggestAlternative: "sport=ice_hockey";
[8428]527}
528
529/* see #11471 */
530*[sport=billard],
531*[sport=billards],
532*[sport=billiard] {
533 throwWarning: tr("{0} is deprecated", "{0.tag}");
534 suggestAlternative: "sport=billiards";
535 fixAdd: "sport=billiards";
[8546]536}
537
538/* see #11499 */
539*[payment:credit_cards=yes] {
540 throwWarning: tr("{0} is inaccurate", "{0.tag}");
541 suggestAlternative: "payment:mastercard=yes";
542 suggestAlternative: "payment:visa=yes";
543 suggestAlternative: "...";
544}
545*[payment:debit_cards=yes] {
546 throwWarning: tr("{0} is inaccurate", "{0.tag}");
547 suggestAlternative: "payment:maestro=yes";
548 suggestAlternative: "payment:girocard=yes";
549 suggestAlternative: "...";
550}
551*[payment:electronic_purses=yes] {
552 throwWarning: tr("{0} is inaccurate", "{0.tag}");
553 suggestAlternative: "payment:ep_geldkarte=yes";
554 suggestAlternative: "payment:ep_quick=yes";
555 suggestAlternative: "...";
556}
557*[payment:cryptocurrencies=yes] {
558 throwWarning: tr("{0} is inaccurate", "{0.tag}");
559 suggestAlternative: "payment:bitcoin=yes";
560 suggestAlternative: "payment:litecoin=yes";
561 suggestAlternative: "...";
[8725]562}
563
564/* see #8717 */
565*[kp][highway=milestone],
566*[kp][railway=milestone],
567*[kp][waterway=milestone] {
568 throwWarning: tr("{0} is deprecated", "{0.key}");
569 suggestAlternative: "distance";
570 fixChangeKey: "kp => distance";
571}
572*[pk][highway=milestone],
573*[pk][railway=milestone],
574*[pk][waterway=milestone] {
575 throwWarning: tr("{0} is deprecated", "{0.key}");
576 suggestAlternative: "distance";
577 fixChangeKey: "pk => distance";
[8730]578}
579
580*[postcode] {
581 throwWarning: tr("{0} is deprecated", "{0.key}");
582 suggestAlternative: "addr:postcode";
583 suggestAlternative: "postal_code";
[9031]584}
585
586*[water=intermittent] {
587 throwWarning: tr("{0} is deprecated", "{0.tag}");
588 suggestAlternative: "intermittent=yes";
589 fixRemove: "water";
590 fixAdd: "intermittent=yes";
[9037]591}
592
593*[type][man_made=pipeline],
594*[type][pipeline=marker] {
595 throwWarning: tr("{0} is deprecated", "{0.key}");
596 suggestAlternative: "substance";
597 fixChangeKey: "type => substance";
598}
[9040]599
600*[landuse=farm] {
601 throwWarning: tr("{0} is deprecated", "{0.tag}");
602 suggestAlternative: "landuse=farmland";
[9045]603 suggestAlternative: "landuse=farmyard";
[9040]604}
[9093]605
606/* #12135 comment:11 */
607*[seamark=buoy]["seamark:type"=~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
608 throwWarning: tr("{0} is deprecated", "{0.tag}");
609 suggestAlternative: "{1.tag}";
610 fixRemove: "seamark";
611}
612*[seamark=buoy]["seamark:type"!~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
613 throwWarning: tr("{0} is deprecated", "{0.tag}");
614 suggestAlternative: "{1.tag}";
[9156]615}
[9160]616/* #12135 - Tag removed rom rendering https://github.com/gravitystorm/openstreetmap-carto/pull/1830 */
617*[landuse=conservation] {
618 throwWarning: tr("{0} is deprecated", "{0.tag}");
619 suggestAlternative: "boundary=protected_area";
620 fixAdd: "boundary=protected_area";
621 fixRemove: "landuse";
622}
[9156]623
624/* #12205 */
625*[amenity=kiosk] {
626 throwWarning: tr("{0} is deprecated", "{0.tag}");
627 suggestAlternative: "shop=kiosk";
628 fixChangeKey: "amenity => shop";
629}
630*[amenity=shop] {
631 throwWarning: tr("{0} is deprecated", "{0.tag}");
632 suggestAlternative: "shop=*";
633}
634*[shop=fishmonger] {
635 throwWarning: tr("{0} is deprecated", "{0.tag}");
636 suggestAlternative: "shop=seafood";
637 fixAdd: "shop=seafood";
638}
639*[shop=fish] {
640 throwWarning: tr("{0} is deprecated", "{0.tag}");
[9435]641 suggestAlternative: "shop=seafood";
642 suggestAlternative: "shop=pet";
643 suggestAlternative: "shop=fishing";
[9156]644}
645*[shop=betting] {
646 throwWarning: tr("{0} is deprecated", "{0.tag}");
[9163]647 suggestAlternative: "shop=bookmaker";
648 suggestAlternative: "shop=lottery";
649 suggestAlternative: "amenity=casino";
650 suggestAlternative: "leisure=amusement_arcade";
651 suggestAlternative: "leisure=adult_gaming_centre";
652 suggestAlternative: "amenity=gambling";
[9156]653}
654*[shop=perfume] {
655 throwWarning: tr("{0} is deprecated", "{0.tag}");
656 suggestAlternative: "shop=perfumery";
657 fixAdd: "shop=perfumery";
658}
659*[amenity=exercise_point] {
660 throwWarning: tr("{0} is deprecated", "{0.tag}");
661 suggestAlternative: "leisure=fitness_station";
662 fixAdd: "leisure=fitness_station";
663 fixRemove: "amenity";
664}
665*[shop=auto_parts] {
666 throwWarning: tr("{0} is deprecated", "{0.tag}");
667 suggestAlternative: "shop=car_parts";
668 fixAdd: "shop=car_parts";
669}
670*[amenity=car_repair] {
671 throwWarning: tr("{0} is deprecated", "{0.tag}");
672 suggestAlternative: "shop=car_repair";
673 fixChangeKey: "amenity => shop";
674}
[9363]675
676/* #12311 */
677*[amenity=studio][type=audio],
678*[amenity=studio][type=radio],
679*[amenity=studio][type=television],
680*[amenity=studio][type=video] {
681 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
682 suggestAlternative: "studio";
683 fixChangeKey: "type => studio";
[9434]684}
685
686/* #11507, #12297 */
687*[power=cable_distribution_cabinet] {
688 throwWarning: tr("{0} is deprecated", "{0.tag}");
689 suggestAlternative: "man_made=street_cabinet + street_cabinet=power";
690 fixAdd: "man_made=street_cabinet";
691 fixAdd: "street_cabinet=power";
692 fixRemove: "power";
[9435]693}
694
695/* #12276 */
696*[man_made=well] {
697 throwWarning: tr("{0} is deprecated", "{0.tag}");
698 suggestAlternative: "man_made=water_well";
699 suggestAlternative: "man_made=petroleum_well";
700}
701*[amenity=dog_bin],
702*[amenity=dog_waste_bin] {
703 throwWarning: tr("{0} is deprecated", "{0.tag}");
704 suggestAlternative: "amenity=waste_basket + waste=dog_excrement + vending=excrement_bags";
705 fixAdd: "amenity=waste_basket";
706 fixAdd: "waste=dog_excrement";
707 fixAdd: "vending=excrement_bags";
708}
709*[amenity=artwork] {
710 throwWarning: tr("{0} is deprecated", "{0.tag}");
711 suggestAlternative: "tourism=artwork";
712 fixAdd: "tourism=artwork";
713 fixRemove: "amenity";
714}
715*[amenity=community_center] {
716 throwWarning: tr("{0} is deprecated", "{0.tag}");
717 suggestAlternative: "amenity=community_centre";
718 fixAdd: "amenity=community_centre";
719}
720*[man_made=cut_line] {
721 throwWarning: tr("{0} is deprecated", "{0.tag}");
722 suggestAlternative: "man_made=cutline";
723 fixAdd: "man_made=cutline";
724}
725*[amenity=park] {
726 throwWarning: tr("{0} is deprecated", "{0.tag}");
727 suggestAlternative: "leisure=park";
728 fixAdd: "leisure=park";
729 fixRemove: "amenity";
730}
731*[amenity=hotel] {
732 throwWarning: tr("{0} is deprecated", "{0.tag}");
733 suggestAlternative: "tourism=hotel";
734 fixAdd: "tourism=hotel";
735 fixRemove: "amenity";
736}
737*[shop=window],
738*[shop=windows] {
739 throwWarning: tr("{0} is deprecated", "{0.tag}");
740 suggestAlternative: "craft=window_construction";
741 fixAdd: "craft=window_construction";
742 fixRemove: "shop";
743}
744*[amenity=education] {
745 throwWarning: tr("{0} is deprecated", "{0.tag}");
746 suggestAlternative: "amenity=college";
747 suggestAlternative: "amenity=school";
748 suggestAlternative: "amenity=university";
749}
750*[shop=gallery] {
751 throwWarning: tr("{0} is deprecated", "{0.tag}");
752 suggestAlternative: "shop=art";
753 fixAdd: "shop=art";
754}
755*[shop=gambling],
756*[leisure=gambling] {
757 throwWarning: tr("{0} is deprecated", "{0.tag}");
758 suggestAlternative: "shop=bookmaker";
759 suggestAlternative: "shop=lottery";
760 suggestAlternative: "amenity=casino";
761 suggestAlternative: "leisure=amusement_arcade";
762 suggestAlternative: "amenity=gambling";
763}
764*[office=real_estate_agent] {
765 throwWarning: tr("{0} is deprecated", "{0.tag}");
766 suggestAlternative: "office=estate_agent ";
767 fixAdd: "office=estate_agent ";
768}
769*[shop=glass] {
770 throwWarning: tr("{0} is deprecated", "{0.tag}");
771 suggestAlternative: "shop=glaziery";
772 suggestAlternative: "craft=glaziery";
773}
774*[amenity=proposed],
775*[amenity=proposed],
776*[amenity=disused],
777*[shop=disused],
778*[historic=abandoned] {
779 throwWarning: tr("{0} is deprecated. Use the {1}: key prefix instead.", "{0.tag}", "{0.value}");
[9363]780}
Note: See TracBrowser for help on using the repository browser.