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

Last change on this file since 7490 was 7490, checked in by Don-vip, 5 years ago

fix #10447 - support new bridge scheme:

  • presets: update bridge values, add bridge:structure, bridge:movable, new items for bridge=movable and bridge:support, items moved to new group "Man Made/Bridges" (based on work from RicoZ and geozeisig)
  • validator: new deprecation and combinations warnings
File size: 8.8 KB
Line 
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: "incline=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=organic] {
85  /* from http://wiki.openstreetmap.org/wiki/Tag:shop=organic */
86  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
87  fixAdd: "shop=supermarket";
88  fixAdd: "organic=only";
89}
90 
91*[bicycle_parking=sheffield] {
92  /* from http://wiki.openstreetmap.org/wiki/Key:bicycle_parking */
93  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
94  fixAdd: "bicycle_parking=stands";
95}
96 
97*[amenity=emergency_phone] {
98  /* http://wiki.openstreetmap.org/wiki/Tag:emergency=phone */
99  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
100  fixRemove: "amenity";
101  fixAdd: "emergency=phone";
102}
103 
104*[sport=gaelic_football] {
105  /* fix #8132 - http://wiki.openstreetmap.org/wiki/Tag:sport=gaelic_football */
106  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
107  fixAdd: "sport=gaelic_games";
108}
109 
110*[power=station] {
111  /* see #8847 / #8961 - http://wiki.openstreetmap.org/wiki/Tag:power=station */
112  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
113  suggestAlternative: "power=plant";
114  suggestAlternative: "power=substation";
115}
116
117*[power=sub_station] {
118  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
119  fixAdd: "power=substation";
120}
121 
122*[generator:method=dam] {
123  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
124  fixAdd: "generator:method=water-storage";
125}
126 
127*[generator:method=pumped-storage] {
128  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
129  fixAdd: "generator:method=water-pumped-storage";
130}
131 
132*[generator:method=pumping] {
133  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
134  fixAdd: "generator:method=water-pumped-storage";
135}
136 
137*[fence_type=chain] {
138  /* see #8962 - http://wiki.openstreetmap.org/wiki/Key:fence_type */
139  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
140  suggestAlternative: "barrier=chain";
141  suggestAlternative: "fence_type=chain_link";
142}
143
144*[building=entrance] {
145  /* see #9000 - http://wiki.openstreetmap.org/wiki/Key:entrance */
146  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
147  suggestAlternative: "entrance";
148}
149 
150*[board_type=board] {
151  /* see #9213 - Useless tag proposed in internal preset for years */
152  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
153  fixRemove: "board_type";
154}
155 
156*[man_made=measurement_station] {
157  /* see #8434 - http://wiki.openstreetmap.org/wiki/Proposed_features/monitoring_station */
158  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
159  fixAdd: "man_made=monitoring_station";
160}
161 
162*[measurement=water_level] {
163  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
164  fixRemove: "measurement";
165  fixAdd: "monitoring:water_level=yes";
166}
167 
168*[measurement=weather] {
169  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
170  fixRemove: "measurement";
171  fixAdd: "monitoring:weather=yes";
172}
173 
174*[measurement=seismic] {
175  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
176  fixRemove: "measurement";
177  fixAdd: "monitoring:seismic_activity=yes";
178}
179
180*[monitoring:river_level] {
181  throwWarning: tr("{0} is deprecated", "{0.key}");
182  fixChangeKey: "monitoring:river_level => monitoring:water_level";
183}
184
185*[stay] {
186  throwWarning: tr("{0} is deprecated", "{0.key}");
187  fixChangeKey: "stay => maxstay";
188}
189
190*[emergency=aed] {
191  /* see #9554 - http://wiki.openstreetmap.org/wiki/Proposed_features/automated_external_defibrillator */
192  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
193  fixAdd: "emergency=defibrillator";
194}
195
196/* from http://wiki.openstreetmap.org/wiki/Conditional_restrictions#Deprecated_tags */
197*[day_on][!restriction],
198*[day_off][!restriction],
199*[date_on][!restriction],
200*[date_off][!restriction],
201*[hour_on][!restriction],
202*[hour_off][!restriction] {
203  throwWarning: tr("{0} is deprecated", "{0.key}");
204  suggestAlternative: "*:conditional";
205  assertMatch: "node day_on=0-12";
206}
207
208/* see #10000, http://wiki.openstreetmap.org/wiki/Tag%3Aaccess%3Ddesignated */
209*[access=designated] {
210  throwWarning: tr("''{0}'' is meaningless, use more specific tags, e.g. ''{1}''", "access=designated", "bicycle=designated");
211  assertMatch: "way access=designated";
212}
213*[access=official] {
214  throwWarning: tr("''{0}'' does not specify the official mode of transportation, use ''{1}'' for example", "access=official", "bicycle=official");
215  assertMatch: "way access=official";
216}
217
218/* see #10085 - give warning for fixme=yes */
219*[fixme=yes], *[FIXME=yes] {
220  throwWarning: tr("{0}={1} is unspecific. Instead of ''{1}'' please give more information about what exactly should be fixed.", "{0.key}", "{0.value}");
221  assertMatch: "way fixme=yes";
222}
223
224/* see #10107, #10108 - http://wiki.openstreetmap.org/wiki/Proposed_features/leaftype#Features.2FPages_affected */
225*[wood=deciduous],
226*[type=broad_leaved],
227*[type=broad_leafed] {
228  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
229  fixRemove: "{0.key}";
230  fixAdd: "leaf_type=broadleaved";
231}
232
233*[wood=coniferous] {
234  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
235  fixRemove: "wood";
236  fixAdd: "leaf_type=needleleaved";
237}
238
239*[wood=mixed] {
240  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
241  fixRemove: "wood";
242  fixAdd: "leaf_type=mixed";
243}
244
245*[wood=evergreen],
246*[type=evergreen] {
247  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
248  fixRemove: "{0.key}";
249  fixAdd: "leaf_cycle=evergreen";
250}
251
252*[type=deciduous],
253*[type=deciduos] {
254  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
255  fixRemove: "type";
256  fixAdd: "leaf_cycle=deciduous";
257}
258
259*[natural=land] {
260  throwWarning: tr("{0}={1} is deprecated. Please use instead a multipolygon.", "{0.key}", "{0.value}");
261  assertMatch: "way natural=land";
262}
263
264/* see #10447 - https://wiki.openstreetmap.org/wiki/Proposed_features/Bridge_types#Deprecated_bridge_key_values */
265*[bridge=causeway] {
266  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
267  suggestAlternative: "ford=yes";
268  suggestAlternative: "bridge=low_water_crossing";
269  suggestAlternative: "embankment=yes";
270}
271
272*[bridge=swing] {
273  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
274  suggestAlternative: "bridge:movable=swing";
275  suggestAlternative: "bridge:structure=simple-suspension";
276}
277
278*[bridge=suspension] {
279  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
280  fixAdd: "bridge=yes";
281  fixAdd: "bridge:structure=suspension";
282}
Note: See TracBrowser for help on using the repository browser.