1 | *[barrier=wire_fence] {
|
---|
2 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
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}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
11 | fixAdd: "barrier=fence";
|
---|
12 | fixAdd: "fence_type=wood";
|
---|
13 | }
|
---|
14 |
|
---|
15 | *[highway=ford] {
|
---|
16 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
17 | fixRemove: "highway";
|
---|
18 | fixAdd: "ford=yes";
|
---|
19 | }
|
---|
20 |
|
---|
21 | *[class] {
|
---|
22 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
23 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
24 | suggestAlternative: "highway";
|
---|
25 | }
|
---|
26 |
|
---|
27 | *[highway=stile] {
|
---|
28 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
29 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
30 | fixRemove: "highway";
|
---|
31 | fixAdd: "barrier=stile";
|
---|
32 | }
|
---|
33 |
|
---|
34 | *[highway=incline] {
|
---|
35 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
36 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
37 | suggestAlternative: "incline";
|
---|
38 | }
|
---|
39 |
|
---|
40 | *[highway=incline_steep] {
|
---|
41 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
42 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
43 | suggestAlternative: "incline";
|
---|
44 | }
|
---|
45 |
|
---|
46 | *[highway=unsurfaced] {
|
---|
47 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
48 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
49 | fixAdd: "highway=road";
|
---|
50 | fixAdd: "surface=unpaved";
|
---|
51 | }
|
---|
52 |
|
---|
53 | *[landuse=wood] {
|
---|
54 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
55 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
56 | suggestAlternative: "landuse=forest";
|
---|
57 | suggestAlternative: "natural=wood";
|
---|
58 | }
|
---|
59 |
|
---|
60 | *[natural=marsh] {
|
---|
61 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
62 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
63 | fixAdd: "natural=wetland";
|
---|
64 | fixAdd: "wetland=marsh";
|
---|
65 | }
|
---|
66 |
|
---|
67 | *[highway=byway] {
|
---|
68 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
69 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
70 | }
|
---|
71 |
|
---|
72 | *[power_source] {
|
---|
73 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
74 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
75 | suggestAlternative: "generator:source";
|
---|
76 | }
|
---|
77 |
|
---|
78 | *[power_rating] {
|
---|
79 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
80 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
81 | suggestAlternative: "generator:output";
|
---|
82 | }
|
---|
83 |
|
---|
84 | *[shop=antique] {
|
---|
85 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
86 | fixAdd: "shop=antiques";
|
---|
87 | }
|
---|
88 |
|
---|
89 | *[shop=bags] {
|
---|
90 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
91 | fixAdd: "shop=bag";
|
---|
92 | }
|
---|
93 |
|
---|
94 | *[shop=organic] {
|
---|
95 | /* from http://wiki.openstreetmap.org/wiki/Tag:shop=organic */
|
---|
96 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
97 | fixAdd: "shop=supermarket";
|
---|
98 | fixAdd: "organic=only";
|
---|
99 | }
|
---|
100 |
|
---|
101 | *[shop=pets] {
|
---|
102 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
103 | fixAdd: "shop=pet";
|
---|
104 | }
|
---|
105 |
|
---|
106 | *[shop=pharmacy] {
|
---|
107 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
108 | fixChangeKey: "shop => amenity";
|
---|
109 | }
|
---|
110 |
|
---|
111 | *[bicycle_parking=sheffield] {
|
---|
112 | /* from http://wiki.openstreetmap.org/wiki/Key:bicycle_parking */
|
---|
113 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
114 | fixAdd: "bicycle_parking=stands";
|
---|
115 | }
|
---|
116 |
|
---|
117 | *[amenity=emergency_phone] {
|
---|
118 | /* http://wiki.openstreetmap.org/wiki/Tag:emergency=phone */
|
---|
119 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
120 | fixRemove: "amenity";
|
---|
121 | fixAdd: "emergency=phone";
|
---|
122 | }
|
---|
123 |
|
---|
124 | *[sport=gaelic_football] {
|
---|
125 | /* fix #8132 - http://wiki.openstreetmap.org/wiki/Tag:sport=gaelic_football */
|
---|
126 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
127 | fixAdd: "sport=gaelic_games";
|
---|
128 | }
|
---|
129 |
|
---|
130 | *[power=station] {
|
---|
131 | /* see #8847 / #8961 - http://wiki.openstreetmap.org/wiki/Tag:power=station */
|
---|
132 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
133 | suggestAlternative: "power=plant";
|
---|
134 | suggestAlternative: "power=substation";
|
---|
135 | }
|
---|
136 |
|
---|
137 | *[power=sub_station] {
|
---|
138 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
139 | fixAdd: "power=substation";
|
---|
140 | }
|
---|
141 |
|
---|
142 | *[generator:method=dam] {
|
---|
143 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
144 | fixAdd: "generator:method=water-storage";
|
---|
145 | }
|
---|
146 |
|
---|
147 | *[generator:method=pumped-storage] {
|
---|
148 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
149 | fixAdd: "generator:method=water-pumped-storage";
|
---|
150 | }
|
---|
151 |
|
---|
152 | *[generator:method=pumping] {
|
---|
153 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
154 | fixAdd: "generator:method=water-pumped-storage";
|
---|
155 | }
|
---|
156 |
|
---|
157 | *[fence_type=chain] {
|
---|
158 | /* see #8962 - http://wiki.openstreetmap.org/wiki/Key:fence_type */
|
---|
159 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
160 | suggestAlternative: "barrier=chain";
|
---|
161 | suggestAlternative: "fence_type=chain_link";
|
---|
162 | }
|
---|
163 |
|
---|
164 | *[building=entrance] {
|
---|
165 | /* see #9000 - http://wiki.openstreetmap.org/wiki/Key:entrance */
|
---|
166 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
167 | suggestAlternative: "entrance";
|
---|
168 | }
|
---|
169 |
|
---|
170 | *[board_type=board] {
|
---|
171 | /* see #9213 - Useless tag proposed in internal preset for years */
|
---|
172 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
173 | fixRemove: "board_type";
|
---|
174 | }
|
---|
175 |
|
---|
176 | *[man_made=measurement_station] {
|
---|
177 | /* see #8434 - http://wiki.openstreetmap.org/wiki/Proposed_features/monitoring_station */
|
---|
178 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
179 | fixAdd: "man_made=monitoring_station";
|
---|
180 | }
|
---|
181 |
|
---|
182 | *[measurement=water_level] {
|
---|
183 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
184 | fixRemove: "measurement";
|
---|
185 | fixAdd: "monitoring:water_level=yes";
|
---|
186 | }
|
---|
187 |
|
---|
188 | *[measurement=weather] {
|
---|
189 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
190 | fixRemove: "measurement";
|
---|
191 | fixAdd: "monitoring:weather=yes";
|
---|
192 | }
|
---|
193 |
|
---|
194 | *[measurement=seismic] {
|
---|
195 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
196 | fixRemove: "measurement";
|
---|
197 | fixAdd: "monitoring:seismic_activity=yes";
|
---|
198 | }
|
---|
199 |
|
---|
200 | *[monitoring:river_level] {
|
---|
201 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
202 | fixChangeKey: "monitoring:river_level => monitoring:water_level";
|
---|
203 | }
|
---|
204 |
|
---|
205 | *[stay] {
|
---|
206 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
207 | fixChangeKey: "stay => maxstay";
|
---|
208 | }
|
---|
209 |
|
---|
210 | *[emergency=aed] {
|
---|
211 | /* see #9554 - http://wiki.openstreetmap.org/wiki/Proposed_features/automated_external_defibrillator */
|
---|
212 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
213 | fixAdd: "emergency=defibrillator";
|
---|
214 | }
|
---|
215 |
|
---|
216 | /* from http://wiki.openstreetmap.org/wiki/Conditional_restrictions#Deprecated_tags */
|
---|
217 | *[day_on][!restriction],
|
---|
218 | *[day_off][!restriction],
|
---|
219 | *[date_on][!restriction],
|
---|
220 | *[date_off][!restriction],
|
---|
221 | *[hour_on][!restriction],
|
---|
222 | *[hour_off][!restriction] {
|
---|
223 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
224 | suggestAlternative: "*:conditional";
|
---|
225 | assertMatch: "node day_on=0-12";
|
---|
226 | }
|
---|
227 |
|
---|
228 | /* see #10000, http://wiki.openstreetmap.org/wiki/Tag%3Aaccess%3Ddesignated */
|
---|
229 | *[access=designated] {
|
---|
230 | throwWarning: tr("''{0}'' is meaningless, use more specific tags, e.g. ''{1}''", "access=designated", "bicycle=designated");
|
---|
231 | assertMatch: "way access=designated";
|
---|
232 | }
|
---|
233 | *[access=official] {
|
---|
234 | throwWarning: tr("''{0}'' does not specify the official mode of transportation, use ''{1}'' for example", "access=official", "bicycle=official");
|
---|
235 | assertMatch: "way access=official";
|
---|
236 | }
|
---|
237 |
|
---|
238 | /* see #10085 - give warning for fixme=yes */
|
---|
239 | *[fixme=yes], *[FIXME=yes] {
|
---|
240 | throwWarning: tr("{0}={1} is unspecific. Instead of ''{1}'' please give more information about what exactly should be fixed.", "{0.key}", "{0.value}");
|
---|
241 | assertMatch: "way fixme=yes";
|
---|
242 | }
|
---|
243 |
|
---|
244 | *[name][name=~/^(?i)fixme$/] {
|
---|
245 | 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}");
|
---|
246 | fixRemove: "name";
|
---|
247 | assertMatch: "node name=fixme";
|
---|
248 | assertMatch: "node name=Fixme";
|
---|
249 | assertMatch: "node name=FIXME";
|
---|
250 | assertNoMatch: "node name=valid name";
|
---|
251 | }
|
---|
252 |
|
---|
253 | /* see #10107, #10108, #10929 - http://wiki.openstreetmap.org/wiki/Proposed_features/leaftype#Features.2FPages_affected */
|
---|
254 | *[wood=deciduous],
|
---|
255 | *[type=broad_leaved],
|
---|
256 | *[type=broad_leafed] {
|
---|
257 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
258 | fixRemove: "{0.key}";
|
---|
259 | fixAdd: "leaf_type=broadleaved";
|
---|
260 | }
|
---|
261 |
|
---|
262 | *[wood=coniferous],
|
---|
263 | *[type=coniferous],
|
---|
264 | *[type=conifer] {
|
---|
265 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
266 | fixRemove: "{0.key}";
|
---|
267 | fixAdd: "leaf_type=needleleaved";
|
---|
268 | }
|
---|
269 |
|
---|
270 | *[wood=mixed] {
|
---|
271 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
272 | fixRemove: "wood";
|
---|
273 | fixAdd: "leaf_type=mixed";
|
---|
274 | }
|
---|
275 |
|
---|
276 | *[wood=evergreen],
|
---|
277 | *[type=evergreen] {
|
---|
278 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
279 | fixRemove: "{0.key}";
|
---|
280 | fixAdd: "leaf_cycle=evergreen";
|
---|
281 | }
|
---|
282 |
|
---|
283 | *[type=deciduous],
|
---|
284 | *[type=deciduos] {
|
---|
285 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
286 | fixRemove: "type";
|
---|
287 | fixAdd: "leaf_cycle=deciduous";
|
---|
288 | }
|
---|
289 |
|
---|
290 | *[natural=land] {
|
---|
291 | throwWarning: tr("{0}={1} is deprecated. Please use instead a multipolygon.", "{0.key}", "{0.value}");
|
---|
292 | assertMatch: "way natural=land";
|
---|
293 | }
|
---|
294 |
|
---|
295 | /* see #10447 - https://wiki.openstreetmap.org/wiki/Proposed_features/Bridge_types#Deprecated_bridge_key_values */
|
---|
296 | *[bridge=causeway] {
|
---|
297 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
298 | suggestAlternative: "ford=yes";
|
---|
299 | suggestAlternative: "bridge=low_water_crossing";
|
---|
300 | suggestAlternative: "embankment=yes";
|
---|
301 | }
|
---|
302 |
|
---|
303 | *[bridge=swing] {
|
---|
304 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
305 | suggestAlternative: "bridge:movable=swing";
|
---|
306 | suggestAlternative: "bridge:structure=simple-suspension";
|
---|
307 | }
|
---|
308 |
|
---|
309 | *[bridge=suspension] {
|
---|
310 | throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
|
---|
311 | fixAdd: "bridge=yes";
|
---|
312 | fixAdd: "bridge:structure=suspension";
|
---|
313 | }
|
---|
314 |
|
---|
315 | /* See #10530 - Incorrect tag proposed in internal preset for years */
|
---|
316 | *[fee=interval],
|
---|
317 | *[lit=interval],
|
---|
318 | *[supervised=interval] {
|
---|
319 | throwWarning: tr("{0} is deprecated. Please specify interval by using opening_hours syntax", "{0.tag}");
|
---|
320 | }
|
---|
321 |
|
---|
322 | /* See #10582 - JOSM supported this tag as "don't upload this" feature, before the introduction of upload flag at layer level */
|
---|
323 | *[/josm\/ignore/] {
|
---|
324 | throwError: tr("{0} is deprecated. Please delete this object and use a private layer instead", "{0.key}");
|
---|
325 | fixDeleteObject: this;
|
---|
326 | }
|
---|
327 |
|
---|
328 | /* see #8281 */
|
---|
329 | *[sport=diving] {
|
---|
330 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
331 | suggestAlternative: "sport=scuba_diving";
|
---|
332 | suggestAlternative: "sport=cliff_diving";
|
---|
333 | }
|
---|
334 |
|
---|
335 | /* see #8281 */
|
---|
336 | *[parking=park_and_ride] {
|
---|
337 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
338 | fixRemove: "parking";
|
---|
339 | fixAdd: "amenity=parking";
|
---|
340 | fixAdd: "park_ride=yes";
|
---|
341 | }
|
---|
342 |
|
---|
343 | /* see #10661, #10837, #11737 */
|
---|
344 | *[access=restricted],
|
---|
345 | *[barrier=yes],
|
---|
346 | *[aerialway=yes][!public_transport],
|
---|
347 | *[amenity=yes],
|
---|
348 | *[place=yes] {
|
---|
349 | throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by a specific value.", "{0.key}", "{0.value}");
|
---|
350 | }
|
---|
351 |
|
---|
352 | /* see #10693 - http://wiki.openstreetmap.org/wiki/Proposed_features/drop_recommendation_for_place_name , #10837 */
|
---|
353 | *[place_name][!name] {
|
---|
354 | throwWarning: tr("{0} should be replaced with {1}", "{0.key}", "{1.key}");
|
---|
355 | fixChangeKey: "place_name => name";
|
---|
356 | }
|
---|
357 | *[place][place_name = *name] {
|
---|
358 | throwWarning: tr("{0} = {1}; remove {0}", "{1.key}", "{1.value}");
|
---|
359 | fixRemove: "{1.key}";
|
---|
360 | }
|
---|
361 |
|
---|
362 | way[sidewalk=yes] {
|
---|
363 | throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by ''left'', ''right'' or ''both''.", "{0.key}", "{0.value}");
|
---|
364 | }
|
---|
365 |
|
---|
366 | *[waterway=water_point],
|
---|
367 | *[waterway=waste_disposal] {
|
---|
368 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
369 | fixChangeKey: "waterway => amenity";
|
---|
370 | }
|
---|
371 | *[waterway=mooring] {
|
---|
372 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
373 | fixRemove: "waterway";
|
---|
374 | fixAdd: "mooring=yes";
|
---|
375 | }
|
---|
376 |
|
---|
377 | /* see #10837 */
|
---|
378 | *[building][levels],
|
---|
379 | *[building:part=yes][levels] {
|
---|
380 | throwWarning: tr("{0} is deprecated", "{1.key}");
|
---|
381 | suggestAlternative: "building:levels";
|
---|
382 | fixChangeKey: "levels => building:levels";
|
---|
383 | }
|
---|
384 |
|
---|
385 | /* see #10691 */
|
---|
386 | *[protected_class] {
|
---|
387 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
388 | suggestAlternative: "protect_class";
|
---|
389 | fixChangeKey: "protected_class => protect_class";
|
---|
390 | }
|
---|
391 |
|
---|
392 | /* see #11070 */
|
---|
393 | *[lock=unknown],
|
---|
394 | *[hide=unknown],
|
---|
395 | *[shelter=unknown],
|
---|
396 | *[access=unknown],
|
---|
397 | *[capacity:parent=unknown],
|
---|
398 | *[capacity:women=unknown],
|
---|
399 | *[capacity:disabled=unknown],
|
---|
400 | *[crossing=unknown],
|
---|
401 | *[foot=unknown] {
|
---|
402 | throwWarning: tr("Unspecific tag {0}", "{0.tag}");
|
---|
403 | }
|
---|
404 |
|
---|
405 | /* unclear definition, see #11183 */
|
---|
406 | *[sport=skiing][!piste:type] {
|
---|
407 | throwWarning: tr("Definition of {0} is unclear", "{0.tag}");
|
---|
408 | suggestAlternative: {1.key};
|
---|
409 | }
|
---|
410 |
|
---|
411 | /* see #11223 */
|
---|
412 | *[waterway=wadi] {
|
---|
413 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
414 | suggestAlternative: "{0.key}=* + intermittent=yes";
|
---|
415 | suggestAlternative: "natural=valley";
|
---|
416 | }
|
---|
417 |
|
---|
418 | /* see #10346 */
|
---|
419 | way[oneway=1] {
|
---|
420 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
421 | suggestAlternative: "oneway=yes";
|
---|
422 | fixAdd: "oneway=yes";
|
---|
423 | }
|
---|
424 |
|
---|
425 | /* see #11329 */
|
---|
426 | way[oneway=-1] {
|
---|
427 | throwWarning: tr("{0} is not recommended. Use the Reverse Ways function from the Tools menu.", "{0.tag}");
|
---|
428 | }
|
---|
429 |
|
---|
430 | *[drinkable] {
|
---|
431 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
432 | suggestAlternative: "drinking_water";
|
---|
433 | }
|
---|
434 |
|
---|
435 | /* see #10329 */
|
---|
436 | *[color][!colour] {
|
---|
437 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
438 | suggestAlternative: "colour";
|
---|
439 | fixChangeKey: "color => colour";
|
---|
440 | }
|
---|
441 | *[color][colour][tag(color)=tag(colour)] {
|
---|
442 | throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
|
---|
443 | set samecolor;
|
---|
444 | fixRemove: "color";
|
---|
445 | }
|
---|
446 | *[color][colour]!.samecolor {
|
---|
447 | throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
|
---|
448 | }
|
---|
449 | *[/:color/]{
|
---|
450 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
451 | suggestAlternative: ":colour";
|
---|
452 | }
|
---|
453 | *[/color:/] {
|
---|
454 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
455 | suggestAlternative: "colour:";
|
---|
456 | }
|
---|
457 |
|
---|
458 | /* see #11234 */
|
---|
459 | *[/=|\+|\/|&|<|>|;|'|"|%|#|@|\\|,|\.|\{|\}|\?|\*|\^|\$/] {
|
---|
460 | throwWarning: tr("key with uncommon character");
|
---|
461 | }
|
---|
462 |
|
---|
463 | /* see #11330 */
|
---|
464 | *[/^.$/],
|
---|
465 | node[/^..$/],
|
---|
466 | way[/^..$/],
|
---|
467 | relation[/^..$/][!to] {
|
---|
468 | throwWarning: tr("uncommon short key");
|
---|
469 | }
|
---|
470 |
|
---|
471 | /* see #11344 */
|
---|
472 | *[tower=air_to_ground] {
|
---|
473 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
474 | suggestAlternative: "tower=transition";
|
---|
475 | fixAdd: "tower=transition";
|
---|
476 | }
|
---|
477 | *[pole=air_to_ground] {
|
---|
478 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
479 | suggestAlternative: "pole=transition";
|
---|
480 | fixAdd: "pole=transition";
|
---|
481 | }
|
---|
482 |
|
---|
483 | /* see #11439 */
|
---|
484 | *[sport=hockey] {
|
---|
485 | throwWarning: tr("{0} is inaccurate", "{0.tag}");
|
---|
486 | suggestAlternative: "sport=field_hockey";
|
---|
487 | suggestAlternative: "sport=ice_hockey";
|
---|
488 | }
|
---|
489 |
|
---|
490 | /* see #11471 */
|
---|
491 | *[sport=billard],
|
---|
492 | *[sport=billards],
|
---|
493 | *[sport=billiard] {
|
---|
494 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
495 | suggestAlternative: "sport=billiards";
|
---|
496 | fixAdd: "sport=billiards";
|
---|
497 | }
|
---|
498 |
|
---|
499 | /* see #11499 */
|
---|
500 | *[payment:credit_cards=yes] {
|
---|
501 | throwWarning: tr("{0} is inaccurate", "{0.tag}");
|
---|
502 | suggestAlternative: "payment:mastercard=yes";
|
---|
503 | suggestAlternative: "payment:visa=yes";
|
---|
504 | suggestAlternative: "...";
|
---|
505 | }
|
---|
506 | *[payment:debit_cards=yes] {
|
---|
507 | throwWarning: tr("{0} is inaccurate", "{0.tag}");
|
---|
508 | suggestAlternative: "payment:maestro=yes";
|
---|
509 | suggestAlternative: "payment:girocard=yes";
|
---|
510 | suggestAlternative: "...";
|
---|
511 | }
|
---|
512 | *[payment:electronic_purses=yes] {
|
---|
513 | throwWarning: tr("{0} is inaccurate", "{0.tag}");
|
---|
514 | suggestAlternative: "payment:ep_geldkarte=yes";
|
---|
515 | suggestAlternative: "payment:ep_quick=yes";
|
---|
516 | suggestAlternative: "...";
|
---|
517 | }
|
---|
518 | *[payment:cryptocurrencies=yes] {
|
---|
519 | throwWarning: tr("{0} is inaccurate", "{0.tag}");
|
---|
520 | suggestAlternative: "payment:bitcoin=yes";
|
---|
521 | suggestAlternative: "payment:litecoin=yes";
|
---|
522 | suggestAlternative: "...";
|
---|
523 | }
|
---|
524 |
|
---|
525 | /* see #8717 */
|
---|
526 | *[kp][highway=milestone],
|
---|
527 | *[kp][railway=milestone],
|
---|
528 | *[kp][waterway=milestone] {
|
---|
529 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
530 | suggestAlternative: "distance";
|
---|
531 | fixChangeKey: "kp => distance";
|
---|
532 | }
|
---|
533 | *[pk][highway=milestone],
|
---|
534 | *[pk][railway=milestone],
|
---|
535 | *[pk][waterway=milestone] {
|
---|
536 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
537 | suggestAlternative: "distance";
|
---|
538 | fixChangeKey: "pk => distance";
|
---|
539 | }
|
---|
540 |
|
---|
541 | *[postcode] {
|
---|
542 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
543 | suggestAlternative: "addr:postcode";
|
---|
544 | suggestAlternative: "postal_code";
|
---|
545 | }
|
---|
546 |
|
---|
547 | *[water=intermittent] {
|
---|
548 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
549 | suggestAlternative: "intermittent=yes";
|
---|
550 | fixRemove: "water";
|
---|
551 | fixAdd: "intermittent=yes";
|
---|
552 | }
|
---|
553 |
|
---|
554 | *[type][man_made=pipeline],
|
---|
555 | *[type][pipeline=marker] {
|
---|
556 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
557 | suggestAlternative: "substance";
|
---|
558 | fixChangeKey: "type => substance";
|
---|
559 | }
|
---|
560 |
|
---|
561 | *[landuse=farm] {
|
---|
562 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
563 | suggestAlternative: "landuse=farmland";
|
---|
564 | suggestAlternative: "landuse=farmyard";
|
---|
565 | }
|
---|
566 |
|
---|
567 | /* #12135 comment:11 */
|
---|
568 | *[seamark=buoy]["seamark:type"=~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
|
---|
569 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
570 | suggestAlternative: "{1.tag}";
|
---|
571 | fixRemove: "seamark";
|
---|
572 | }
|
---|
573 | *[seamark=buoy]["seamark:type"!~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
|
---|
574 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
575 | suggestAlternative: "{1.tag}";
|
---|
576 | }
|
---|
577 | /* #12135 - Tag removed rom rendering https://github.com/gravitystorm/openstreetmap-carto/pull/1830 */
|
---|
578 | *[landuse=conservation] {
|
---|
579 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
580 | suggestAlternative: "boundary=protected_area";
|
---|
581 | fixAdd: "boundary=protected_area";
|
---|
582 | fixRemove: "landuse";
|
---|
583 | }
|
---|
584 |
|
---|
585 | /* #12205 */
|
---|
586 | *[amenity=kiosk] {
|
---|
587 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
588 | suggestAlternative: "shop=kiosk";
|
---|
589 | fixChangeKey: "amenity => shop";
|
---|
590 | }
|
---|
591 | *[amenity=shop] {
|
---|
592 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
593 | suggestAlternative: "shop=*";
|
---|
594 | }
|
---|
595 | *[shop=fishmonger] {
|
---|
596 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
597 | suggestAlternative: "shop=seafood";
|
---|
598 | fixAdd: "shop=seafood";
|
---|
599 | }
|
---|
600 | *[shop=fish] {
|
---|
601 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
602 | suggestAlternative: "shop=seafood, shop=pet or shop=fishing";
|
---|
603 | }
|
---|
604 | *[shop=betting] {
|
---|
605 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
606 | suggestAlternative: "shop=bookmaker";
|
---|
607 | suggestAlternative: "shop=lottery";
|
---|
608 | suggestAlternative: "amenity=casino";
|
---|
609 | suggestAlternative: "leisure=amusement_arcade";
|
---|
610 | suggestAlternative: "leisure=adult_gaming_centre";
|
---|
611 | suggestAlternative: "amenity=gambling";
|
---|
612 | }
|
---|
613 | *[shop=perfume] {
|
---|
614 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
615 | suggestAlternative: "shop=perfumery";
|
---|
616 | fixAdd: "shop=perfumery";
|
---|
617 | }
|
---|
618 | *[amenity=exercise_point] {
|
---|
619 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
620 | suggestAlternative: "leisure=fitness_station";
|
---|
621 | fixAdd: "leisure=fitness_station";
|
---|
622 | fixRemove: "amenity";
|
---|
623 | }
|
---|
624 | *[shop=auto_parts] {
|
---|
625 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
626 | suggestAlternative: "shop=car_parts";
|
---|
627 | fixAdd: "shop=car_parts";
|
---|
628 | }
|
---|
629 | *[amenity=car_repair] {
|
---|
630 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
631 | suggestAlternative: "shop=car_repair";
|
---|
632 | fixChangeKey: "amenity => shop";
|
---|
633 | }
|
---|
634 |
|
---|
635 | /* #12311 */
|
---|
636 | *[amenity=studio][type=audio],
|
---|
637 | *[amenity=studio][type=radio],
|
---|
638 | *[amenity=studio][type=television],
|
---|
639 | *[amenity=studio][type=video] {
|
---|
640 | throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
|
---|
641 | suggestAlternative: "studio";
|
---|
642 | fixChangeKey: "type => studio";
|
---|
643 | }
|
---|
644 |
|
---|
645 | /* #11507, #12297 */
|
---|
646 | *[power=cable_distribution_cabinet] {
|
---|
647 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
648 | suggestAlternative: "man_made=street_cabinet + street_cabinet=power";
|
---|
649 | fixAdd: "man_made=street_cabinet";
|
---|
650 | fixAdd: "street_cabinet=power";
|
---|
651 | fixRemove: "power";
|
---|
652 | }
|
---|