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

Last change on this file since 7197 was 7197, checked in by bastiK, 10 years ago

fixed #10085 - give warning for fixme=yes

File size: 6.9 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*[emergency=aed] {
186 /* see #9554 - http://wiki.openstreetmap.org/wiki/Proposed_features/automated_external_defibrillator */
187 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
188 fixAdd: "emergency=defibrillator";
189}
190
191/* from http://wiki.openstreetmap.org/wiki/Conditional_restrictions#Deprecated_tags */
192*[day_on][!restriction],
193*[day_off][!restriction],
194*[date_on][!restriction],
195*[date_off][!restriction],
196*[hour_on][!restriction],
197*[hour_off][!restriction] {
198 throwWarning: tr("{0} is deprecated", "{0.key}");
199 suggestAlternative: "*:conditional";
200 assertMatch: "node day_on=0-12";
201}
202
203/* see #10000, http://wiki.openstreetmap.org/wiki/Tag%3Aaccess%3Ddesignated */
204*[access=designated] {
205 throwWarning: tr("''{0}'' is meaningless, use more specific tags, e.g. ''{1}''", "access=designated", "bicycle=designated");
206 assertMatch: "way access=designated";
207}
208*[access=official] {
209 throwWarning: tr("''{0}'' does not specify the official mode of transportation, use ''{1}'' for example", "access=official", "bicycle=official");
210 assertMatch: "way access=official";
211}
212
213/* see #10085 - give warning for fixme=yes */
214*[fixme=yes], *[FIXME=yes] {
215 throwWarning: tr("{0}={1} is unspecific. Instead of ''{1}'' please give more information about what exactly should be fixed.", "{0.key}", "{0.value}");
216 assertMatch: "way fixme=yes";
217}
218
Note: See TracBrowser for help on using the repository browser.