1 | *[barrier=wire_fence] {
|
---|
2 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
3 | fixAdd: "barrier=fence";
|
---|
4 | fixAdd: "fence_type=chain_link";
|
---|
5 | assertMatch: "way barrier=wire_fence";
|
---|
6 | assertNoMatch: "way barrier=fence";
|
---|
7 | }
|
---|
8 |
|
---|
9 | *[barrier=wood_fence] {
|
---|
10 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
11 | suggestAlternative: "barrier=fence + fence_type=wood";
|
---|
12 | fixAdd: "barrier=fence";
|
---|
13 | fixAdd: "fence_type=wood";
|
---|
14 | }
|
---|
15 |
|
---|
16 | *[highway=ford] {
|
---|
17 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
18 | suggestAlternative: "ford=yes";
|
---|
19 | fixRemove: "highway";
|
---|
20 | fixAdd: "ford=yes";
|
---|
21 | }
|
---|
22 |
|
---|
23 | *[class] {
|
---|
24 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
25 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
26 | suggestAlternative: "highway";
|
---|
27 | }
|
---|
28 |
|
---|
29 | *[highway=stile] {
|
---|
30 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
31 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
32 | suggestAlternative: "barrier=stile";
|
---|
33 | fixRemove: "highway";
|
---|
34 | fixAdd: "barrier=stile";
|
---|
35 | }
|
---|
36 |
|
---|
37 | *[highway=incline] {
|
---|
38 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
39 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
40 | suggestAlternative: "incline";
|
---|
41 | }
|
---|
42 |
|
---|
43 | *[highway=incline_steep] {
|
---|
44 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
45 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
46 | suggestAlternative: "incline";
|
---|
47 | }
|
---|
48 |
|
---|
49 | *[highway=unsurfaced] {
|
---|
50 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
51 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
52 | suggestAlternative: "highway=* + surface=unpaved";
|
---|
53 | fixAdd: "highway=road";
|
---|
54 | fixAdd: "surface=unpaved";
|
---|
55 | }
|
---|
56 |
|
---|
57 | *[landuse=wood] {
|
---|
58 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
59 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
60 | suggestAlternative: "landuse=forest";
|
---|
61 | suggestAlternative: "natural=wood";
|
---|
62 | }
|
---|
63 |
|
---|
64 | *[natural=marsh] {
|
---|
65 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
66 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
67 | suggestAlternative: "natural=wetland + wetland=marsh";
|
---|
68 | fixAdd: "natural=wetland";
|
---|
69 | fixAdd: "wetland=marsh";
|
---|
70 | }
|
---|
71 |
|
---|
72 | *[highway=byway] {
|
---|
73 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
74 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
75 | }
|
---|
76 |
|
---|
77 | *[power_source] {
|
---|
78 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
79 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
80 | suggestAlternative: "generator:source";
|
---|
81 | }
|
---|
82 |
|
---|
83 | *[power_rating] {
|
---|
84 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
85 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
86 | suggestAlternative: "generator:output";
|
---|
87 | }
|
---|
88 |
|
---|
89 | *[shop=antique] {
|
---|
90 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
91 | suggestAlternative: "shop=antiques";
|
---|
92 | fixAdd: "shop=antiques";
|
---|
93 | }
|
---|
94 |
|
---|
95 | *[shop=bags] {
|
---|
96 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
97 | suggestAlternative: "shop=bag";
|
---|
98 | fixAdd: "shop=bag";
|
---|
99 | }
|
---|
100 |
|
---|
101 | *[shop=organic] {
|
---|
102 | /* from http://wiki.openstreetmap.org/wiki/Tag:shop=organic */
|
---|
103 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
104 | suggestAlternative: "shop=supermarket + organic=only";
|
---|
105 | fixAdd: "shop=supermarket";
|
---|
106 | fixAdd: "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 */
|
---|
379 | *[traffic_calming=yes],
|
---|
380 | *[access=restricted],
|
---|
381 | *[barrier=yes],
|
---|
382 | *[aerialway=yes][!public_transport],
|
---|
383 | *[amenity=yes],
|
---|
384 | *[shop="*"],
|
---|
385 | *[craft=yes],
|
---|
386 | *[place=yes] {
|
---|
387 | throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by a specific value.", "{0.key}", "{0.value}");
|
---|
388 | }
|
---|
389 |
|
---|
390 | /* see #10693 - http://wiki.openstreetmap.org/wiki/Proposed_features/drop_recommendation_for_place_name , #10837 */
|
---|
391 | *[place_name][!name] {
|
---|
392 | throwWarning: tr("{0} should be replaced with {1}", "{0.key}", "{1.key}");
|
---|
393 | fixChangeKey: "place_name => name";
|
---|
394 | }
|
---|
395 | *[place][place_name = *name] {
|
---|
396 | throwWarning: tr("{0} = {1}; remove {0}", "{1.key}", "{1.value}");
|
---|
397 | fixRemove: "{1.key}";
|
---|
398 | }
|
---|
399 |
|
---|
400 | way[sidewalk=yes] {
|
---|
401 | throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by ''left'', ''right'' or ''both''.", "{0.key}", "{0.value}");
|
---|
402 | }
|
---|
403 |
|
---|
404 | *[waterway=water_point] {
|
---|
405 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
406 | suggestAlternative: "amenity=water_point";
|
---|
407 | fixChangeKey: "waterway => amenity";
|
---|
408 | }
|
---|
409 | *[waterway=waste_disposal] {
|
---|
410 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
411 | suggestAlternative: "amenity=waste_disposal";
|
---|
412 | fixChangeKey: "waterway => amenity";
|
---|
413 | }
|
---|
414 | *[waterway=mooring] {
|
---|
415 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
416 | suggestAlternative: "mooring=yes";
|
---|
417 | fixRemove: "waterway";
|
---|
418 | fixAdd: "mooring=yes";
|
---|
419 | }
|
---|
420 |
|
---|
421 | /* see #10837 */
|
---|
422 | *[building][levels],
|
---|
423 | *[building:part=yes][levels] {
|
---|
424 | throwWarning: tr("{0} is deprecated", "{1.key}");
|
---|
425 | suggestAlternative: "building:levels";
|
---|
426 | fixChangeKey: "levels => building:levels";
|
---|
427 | }
|
---|
428 |
|
---|
429 | /* see #10691 */
|
---|
430 | *[protected_class] {
|
---|
431 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
432 | suggestAlternative: "protect_class";
|
---|
433 | fixChangeKey: "protected_class => protect_class";
|
---|
434 | }
|
---|
435 |
|
---|
436 | /* see #11070 */
|
---|
437 | *[lock=unknown],
|
---|
438 | *[hide=unknown],
|
---|
439 | *[shelter=unknown],
|
---|
440 | *[access=unknown],
|
---|
441 | *[capacity:parent=unknown],
|
---|
442 | *[capacity:women=unknown],
|
---|
443 | *[capacity:disabled=unknown],
|
---|
444 | *[crossing=unknown],
|
---|
445 | *[foot=unknown] {
|
---|
446 | throwWarning: tr("Unspecific tag {0}", "{0.tag}");
|
---|
447 | }
|
---|
448 |
|
---|
449 | /* unclear definition, see #11183 */
|
---|
450 | *[sport=skiing][!piste:type] {
|
---|
451 | throwWarning: tr("Definition of {0} is unclear", "{0.tag}");
|
---|
452 | suggestAlternative: {1.key};
|
---|
453 | }
|
---|
454 |
|
---|
455 | /* see #11223 */
|
---|
456 | *[waterway=wadi] {
|
---|
457 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
458 | suggestAlternative: "{0.key}=* + intermittent=yes";
|
---|
459 | suggestAlternative: "natural=valley";
|
---|
460 | }
|
---|
461 |
|
---|
462 | /* see #10346 */
|
---|
463 | way[oneway=1] {
|
---|
464 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
465 | suggestAlternative: "oneway=yes";
|
---|
466 | fixAdd: "oneway=yes";
|
---|
467 | }
|
---|
468 |
|
---|
469 | /* see #11329 */
|
---|
470 | way[oneway=-1] {
|
---|
471 | throwWarning: tr("{0} is not recommended. Use the Reverse Ways function from the Tools menu.", "{0.tag}");
|
---|
472 | }
|
---|
473 |
|
---|
474 | *[drinkable] {
|
---|
475 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
476 | suggestAlternative: "drinking_water";
|
---|
477 | }
|
---|
478 |
|
---|
479 | /* see #10329 */
|
---|
480 | *[color][!colour] {
|
---|
481 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
482 | suggestAlternative: "colour";
|
---|
483 | fixChangeKey: "color => colour";
|
---|
484 | }
|
---|
485 | *[color][colour][tag(color)=tag(colour)] {
|
---|
486 | throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
|
---|
487 | set samecolor;
|
---|
488 | fixRemove: "color";
|
---|
489 | }
|
---|
490 | *[color][colour]!.samecolor {
|
---|
491 | throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
|
---|
492 | }
|
---|
493 | *[/:color/]{
|
---|
494 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
495 | suggestAlternative: ":colour";
|
---|
496 | }
|
---|
497 | *[/color:/] {
|
---|
498 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
499 | suggestAlternative: "colour:";
|
---|
500 | }
|
---|
501 |
|
---|
502 | /* see #11234 */
|
---|
503 | *[/=|\+|\/|&|<|>|;|'|"|%|#|@|\\|,|\.|\{|\}|\?|\*|\^|\$/] {
|
---|
504 | throwWarning: tr("key with uncommon character");
|
---|
505 | }
|
---|
506 |
|
---|
507 | /* see #11330 */
|
---|
508 | *[/^.$/],
|
---|
509 | node[/^..$/],
|
---|
510 | way[/^..$/],
|
---|
511 | relation[/^..$/][!to] {
|
---|
512 | throwWarning: tr("uncommon short key");
|
---|
513 | }
|
---|
514 |
|
---|
515 | /* see #11344 */
|
---|
516 | *[tower=air_to_ground] {
|
---|
517 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
518 | suggestAlternative: "tower=transition";
|
---|
519 | fixAdd: "tower=transition";
|
---|
520 | }
|
---|
521 | *[pole=air_to_ground] {
|
---|
522 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
523 | suggestAlternative: "pole=transition";
|
---|
524 | fixAdd: "pole=transition";
|
---|
525 | }
|
---|
526 |
|
---|
527 | /* see #11439 */
|
---|
528 | *[sport=hockey] {
|
---|
529 | throwWarning: tr("{0} is inaccurate", "{0.tag}");
|
---|
530 | suggestAlternative: "sport=field_hockey";
|
---|
531 | suggestAlternative: "sport=ice_hockey";
|
---|
532 | }
|
---|
533 |
|
---|
534 | /* see #11471 */
|
---|
535 | *[sport=billard],
|
---|
536 | *[sport=billards],
|
---|
537 | *[sport=billiard] {
|
---|
538 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
539 | suggestAlternative: "sport=billiards";
|
---|
540 | fixAdd: "sport=billiards";
|
---|
541 | }
|
---|
542 |
|
---|
543 | /* see #11499 */
|
---|
544 | *[payment:credit_cards=yes] {
|
---|
545 | throwWarning: tr("{0} is inaccurate", "{0.tag}");
|
---|
546 | suggestAlternative: "payment:mastercard=yes";
|
---|
547 | suggestAlternative: "payment:visa=yes";
|
---|
548 | suggestAlternative: "...";
|
---|
549 | }
|
---|
550 | *[payment:debit_cards=yes] {
|
---|
551 | throwWarning: tr("{0} is inaccurate", "{0.tag}");
|
---|
552 | suggestAlternative: "payment:maestro=yes";
|
---|
553 | suggestAlternative: "payment:girocard=yes";
|
---|
554 | suggestAlternative: "...";
|
---|
555 | }
|
---|
556 | *[payment:electronic_purses=yes] {
|
---|
557 | throwWarning: tr("{0} is inaccurate", "{0.tag}");
|
---|
558 | suggestAlternative: "payment:ep_geldkarte=yes";
|
---|
559 | suggestAlternative: "payment:ep_quick=yes";
|
---|
560 | suggestAlternative: "...";
|
---|
561 | }
|
---|
562 | *[payment:cryptocurrencies=yes] {
|
---|
563 | throwWarning: tr("{0} is inaccurate", "{0.tag}");
|
---|
564 | suggestAlternative: "payment:bitcoin=yes";
|
---|
565 | suggestAlternative: "payment:litecoin=yes";
|
---|
566 | suggestAlternative: "...";
|
---|
567 | }
|
---|
568 |
|
---|
569 | /* see #8717 */
|
---|
570 | *[kp][highway=milestone],
|
---|
571 | *[kp][railway=milestone],
|
---|
572 | *[kp][waterway=milestone] {
|
---|
573 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
574 | suggestAlternative: "distance";
|
---|
575 | fixChangeKey: "kp => distance";
|
---|
576 | }
|
---|
577 | *[pk][highway=milestone],
|
---|
578 | *[pk][railway=milestone],
|
---|
579 | *[pk][waterway=milestone] {
|
---|
580 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
581 | suggestAlternative: "distance";
|
---|
582 | fixChangeKey: "pk => distance";
|
---|
583 | }
|
---|
584 |
|
---|
585 | *[postcode] {
|
---|
586 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
587 | suggestAlternative: "addr:postcode";
|
---|
588 | suggestAlternative: "postal_code";
|
---|
589 | }
|
---|
590 |
|
---|
591 | *[water=intermittent] {
|
---|
592 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
593 | suggestAlternative: "intermittent=yes";
|
---|
594 | fixRemove: "water";
|
---|
595 | fixAdd: "intermittent=yes";
|
---|
596 | }
|
---|
597 |
|
---|
598 | *[type][man_made=pipeline],
|
---|
599 | *[type][pipeline=marker] {
|
---|
600 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
601 | suggestAlternative: "substance";
|
---|
602 | fixChangeKey: "type => substance";
|
---|
603 | }
|
---|
604 |
|
---|
605 | *[landuse=farm] {
|
---|
606 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
607 | suggestAlternative: "landuse=farmland";
|
---|
608 | suggestAlternative: "landuse=farmyard";
|
---|
609 | }
|
---|
610 |
|
---|
611 | /* #12135 comment:11 */
|
---|
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}";
|
---|
615 | fixRemove: "seamark";
|
---|
616 | }
|
---|
617 | *[seamark=buoy]["seamark:type"!~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
|
---|
618 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
619 | suggestAlternative: "{1.tag}";
|
---|
620 | }
|
---|
621 | /* #12135 - Tag removed rom rendering https://github.com/gravitystorm/openstreetmap-carto/pull/1830 */
|
---|
622 | *[landuse=conservation] {
|
---|
623 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
624 | suggestAlternative: "boundary=protected_area";
|
---|
625 | fixAdd: "boundary=protected_area";
|
---|
626 | fixRemove: "landuse";
|
---|
627 | }
|
---|
628 |
|
---|
629 | /* #12205 */
|
---|
630 | *[amenity=kiosk] {
|
---|
631 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
632 | suggestAlternative: "shop=kiosk";
|
---|
633 | fixChangeKey: "amenity => shop";
|
---|
634 | }
|
---|
635 | *[amenity=shop] {
|
---|
636 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
637 | suggestAlternative: "shop=*";
|
---|
638 | }
|
---|
639 | *[shop=fishmonger] {
|
---|
640 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
641 | suggestAlternative: "shop=seafood";
|
---|
642 | fixAdd: "shop=seafood";
|
---|
643 | }
|
---|
644 | *[shop=fish] {
|
---|
645 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
646 | suggestAlternative: "shop=seafood";
|
---|
647 | suggestAlternative: "shop=pet";
|
---|
648 | suggestAlternative: "shop=fishing";
|
---|
649 | }
|
---|
650 | *[shop=betting] {
|
---|
651 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
652 | suggestAlternative: "shop=bookmaker";
|
---|
653 | suggestAlternative: "shop=lottery";
|
---|
654 | suggestAlternative: "amenity=casino";
|
---|
655 | suggestAlternative: "leisure=amusement_arcade";
|
---|
656 | suggestAlternative: "leisure=adult_gaming_centre";
|
---|
657 | suggestAlternative: "amenity=gambling";
|
---|
658 | }
|
---|
659 | *[shop=perfume] {
|
---|
660 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
661 | suggestAlternative: "shop=perfumery";
|
---|
662 | fixAdd: "shop=perfumery";
|
---|
663 | }
|
---|
664 | *[amenity=exercise_point] {
|
---|
665 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
666 | suggestAlternative: "leisure=fitness_station";
|
---|
667 | fixAdd: "leisure=fitness_station";
|
---|
668 | fixRemove: "amenity";
|
---|
669 | }
|
---|
670 | *[shop=auto_parts] {
|
---|
671 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
672 | suggestAlternative: "shop=car_parts";
|
---|
673 | fixAdd: "shop=car_parts";
|
---|
674 | }
|
---|
675 | *[amenity=car_repair] {
|
---|
676 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
677 | suggestAlternative: "shop=car_repair";
|
---|
678 | fixChangeKey: "amenity => shop";
|
---|
679 | }
|
---|
680 |
|
---|
681 | /* #12311 */
|
---|
682 | *[amenity=studio][type=audio],
|
---|
683 | *[amenity=studio][type=radio],
|
---|
684 | *[amenity=studio][type=television],
|
---|
685 | *[amenity=studio][type=video] {
|
---|
686 | throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
|
---|
687 | suggestAlternative: "studio";
|
---|
688 | fixChangeKey: "type => studio";
|
---|
689 | }
|
---|
690 |
|
---|
691 | /* #11507, #12297 */
|
---|
692 | *[power=cable_distribution_cabinet] {
|
---|
693 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
694 | suggestAlternative: "man_made=street_cabinet + street_cabinet=power";
|
---|
695 | fixAdd: "man_made=street_cabinet";
|
---|
696 | fixAdd: "street_cabinet=power";
|
---|
697 | fixRemove: "power";
|
---|
698 | }
|
---|
699 |
|
---|
700 | /* #12276 */
|
---|
701 | *[man_made=well] {
|
---|
702 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
703 | suggestAlternative: "man_made=water_well";
|
---|
704 | suggestAlternative: "man_made=petroleum_well";
|
---|
705 | }
|
---|
706 | *[amenity=dog_bin],
|
---|
707 | *[amenity=dog_waste_bin] {
|
---|
708 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
709 | suggestAlternative: "amenity=waste_basket + waste=dog_excrement + vending=excrement_bags";
|
---|
710 | fixAdd: "amenity=waste_basket";
|
---|
711 | fixAdd: "waste=dog_excrement";
|
---|
712 | fixAdd: "vending=excrement_bags";
|
---|
713 | }
|
---|
714 | *[amenity=artwork] {
|
---|
715 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
716 | suggestAlternative: "tourism=artwork";
|
---|
717 | fixAdd: "tourism=artwork";
|
---|
718 | fixRemove: "amenity";
|
---|
719 | }
|
---|
720 | *[amenity=community_center] {
|
---|
721 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
722 | suggestAlternative: "amenity=community_centre";
|
---|
723 | fixAdd: "amenity=community_centre";
|
---|
724 | }
|
---|
725 | *[man_made=cut_line] {
|
---|
726 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
727 | suggestAlternative: "man_made=cutline";
|
---|
728 | fixAdd: "man_made=cutline";
|
---|
729 | }
|
---|
730 | *[amenity=park] {
|
---|
731 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
732 | suggestAlternative: "leisure=park";
|
---|
733 | fixAdd: "leisure=park";
|
---|
734 | fixRemove: "amenity";
|
---|
735 | }
|
---|
736 | *[amenity=hotel] {
|
---|
737 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
738 | suggestAlternative: "tourism=hotel";
|
---|
739 | fixAdd: "tourism=hotel";
|
---|
740 | fixRemove: "amenity";
|
---|
741 | }
|
---|
742 | *[shop=window],
|
---|
743 | *[shop=windows] {
|
---|
744 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
745 | suggestAlternative: "craft=window_construction";
|
---|
746 | fixAdd: "craft=window_construction";
|
---|
747 | fixRemove: "shop";
|
---|
748 | }
|
---|
749 | *[amenity=education] {
|
---|
750 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
751 | suggestAlternative: "amenity=college";
|
---|
752 | suggestAlternative: "amenity=school";
|
---|
753 | suggestAlternative: "amenity=university";
|
---|
754 | }
|
---|
755 | *[shop=gallery] {
|
---|
756 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
757 | suggestAlternative: "shop=art";
|
---|
758 | fixAdd: "shop=art";
|
---|
759 | }
|
---|
760 | *[shop=gambling],
|
---|
761 | *[leisure=gambling] {
|
---|
762 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
763 | suggestAlternative: "shop=bookmaker";
|
---|
764 | suggestAlternative: "shop=lottery";
|
---|
765 | suggestAlternative: "amenity=casino";
|
---|
766 | suggestAlternative: "leisure=amusement_arcade";
|
---|
767 | suggestAlternative: "amenity=gambling";
|
---|
768 | }
|
---|
769 | *[office=real_estate_agent] {
|
---|
770 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
771 | suggestAlternative: "office=estate_agent ";
|
---|
772 | fixAdd: "office=estate_agent ";
|
---|
773 | }
|
---|
774 | *[shop=glass] {
|
---|
775 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
776 | suggestAlternative: "shop=glaziery";
|
---|
777 | suggestAlternative: "craft=glaziery";
|
---|
778 | }
|
---|
779 | *[amenity=proposed],
|
---|
780 | *[amenity=proposed],
|
---|
781 | *[amenity=disused],
|
---|
782 | *[shop=disused],
|
---|
783 | *[historic=abandoned] {
|
---|
784 | throwWarning: tr("{0} is deprecated. Use the {1}: key prefix instead.", "{0.tag}", "{0.value}");
|
---|
785 | }
|
---|
786 |
|
---|
787 | /* #12431 */
|
---|
788 | *[amenity=swimming_pool] {
|
---|
789 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
790 | suggestAlternative: "leisure=swimming_pool";
|
---|
791 | fixChangeKey: "amenity => leisure";
|
---|
792 | }
|
---|
793 |
|
---|
794 | /* #12494 */
|
---|
795 | *[/^[^t][^i][^g].+_[0-9]$/][!/^note_[0-9]$/][!/^description_[0-9]$/] {
|
---|
796 | throwOther: tr("questionable key (ending with a number): {0}", "{0.key}");
|
---|
797 | } /*should not warn for key tiger:name_base_1 */
|
---|
798 |
|
---|
799 | /* #12500 */
|
---|
800 | *[sport=skating] {
|
---|
801 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
802 | suggestAlternative: "sport=ice_skating";
|
---|
803 | suggestAlternative: "sport=roller_skating";
|
---|
804 | }
|
---|
805 |
|
---|
806 | way[barrier=wall][type=noise_barrier][!wall],
|
---|
807 | way[barrier=wall][type=noise_barrier][wall=noise_barrier] {
|
---|
808 | throwWarning: tr("{0} is deprecated", "{1.tag}");
|
---|
809 | suggestAlternative: "wall=noise_barrier";
|
---|
810 | fixChangeKey: "type => wall";
|
---|
811 | }
|
---|
812 | way[barrier=wall][type=noise_barrier][wall][wall!=noise_barrier] {
|
---|
813 | throwWarning: tr("{0} is deprecated", "{1.tag}");
|
---|
814 | suggestAlternative: "wall=noise_barrier";
|
---|
815 | }
|
---|
816 |
|
---|
817 | /* #8978, 12588 */
|
---|
818 | *[amenity=public_building] {
|
---|
819 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
820 | suggestAlternative: "amenity=townhall";
|
---|
821 | suggestAlternative: "amenity=community_centre";
|
---|
822 | suggestAlternative: "amenity=hospital";
|
---|
823 | suggestAlternative: "leisure=sports_centre";
|
---|
824 | suggestAlternative: "office=government";
|
---|
825 | suggestAlternative: "building=hospital";
|
---|
826 | suggestAlternative: "building=public";
|
---|
827 | suggestAlternative: "...";
|
---|
828 | }
|
---|