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

Last change on this file since 6512 was 6512, checked in by simon04, 6 years ago

see #9414 - MapCSSTagChecker: parse and unit test match assertions (assertMatch, assertNoMatch)

File size: 6.0 KB
Line 
1*[barrier=wire_fence] {
2  throwWarning: tr("{0}={1} is deprecated", "barrier", "wire_fence");
3  fixRemove: "barrier";
4  fixAdd: "barrier=fence";
5  fixAdd: "fence_type=chain_link";
6  assertMatch: "way barrier=wire_fence";
7  assertNoMatch: "way barrier=fence";
8}
9 
10*[barrier=wood_fence] {
11  throwWarning: tr("{0}={1} is deprecated", "barrier", "wood_fence");
12  fixRemove: "barrier";
13  fixAdd: "barrier=fence";
14  fixAdd: "fence_type=wood";
15}
16 
17*[highway=ford] {
18  throwWarning: tr("{0}={1} is deprecated", "highway", "ford");
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", "class");
26  suggestAlternative: "highway";
27}
28 
29*[highway=stile] {
30  /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
31  throwWarning: tr("{0}={1} is deprecated", "highway", "stile");
32  fixRemove: "highway";
33  fixAdd: "barrier=stile";
34}
35 
36*[highway=incline] {
37  /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
38  throwWarning: tr("{0}={1} is deprecated", "highway", "incline");
39  suggestAlternative: "incline";
40}
41 
42*[highway=incline_steep] {
43  /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
44  throwWarning: tr("{0}={1} is deprecated", "highway", "incline");
45  suggestAlternative: "incline";
46}
47 
48*[highway=unsurfaced] {
49  /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
50  throwWarning: tr("{0}={1} is deprecated", "highway", "unsurfaced");
51  fixRemove: "highway";
52  fixAdd: "highway=road";
53  fixAdd: "incline=unpaved";
54}
55 
56*[landuse=wood] {
57  /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
58  throwWarning: tr("{0}={1} is deprecated", "landuse", "wood");
59  suggestAlternative: "landuse=forest";
60  suggestAlternative: "natural=wood";
61}
62 
63*[natural=marsh] {
64  /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
65  throwWarning: tr("{0}={1} is deprecated", "natural", "marsh");
66  fixRemove: "natural";
67  fixAdd: "natural=wetland";
68  fixAdd: "wetland=marsh";
69}
70 
71*[highway=byway] {
72  /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
73  throwWarning: tr("{0}={1} is deprecated", "highway", "byway");
74}
75 
76*[power_source] {
77  /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
78  throwWarning: tr("{0} is deprecated", "power_source");
79  suggestAlternative: "generator:source";
80}
81 
82*[power_rating] {
83  /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
84  throwWarning: tr("{0} is deprecated", "power_rating");
85  suggestAlternative: "generator:output";
86}
87 
88*[shop=organic] {
89  /* from http://wiki.openstreetmap.org/wiki/Tag:shop=organic */
90  throwWarning: tr("{0}={1} is deprecated", "shop", "organic");
91  fixRemove: "shop";
92  fixAdd: "shop=supermarket";
93  fixAdd: "organic=only";
94}
95 
96*[bicycle_parking=sheffield] {
97  /* from http://wiki.openstreetmap.org/wiki/Key:bicycle_parking */
98  throwWarning: tr("{0}={1} is deprecated", "bicycle_parking", "sheffield");
99  fixRemove: "bicycle_parking";
100  fixAdd: "bicycle_parking=stands";
101}
102 
103*[amenity=emergency_phone] {
104  /* http://wiki.openstreetmap.org/wiki/Tag:emergency=phone */
105  throwWarning: tr("{0}={1} is deprecated", "amenity", "emergency_phone");
106  fixRemove: "amenity";
107  fixAdd: "emergency=phone";
108}
109 
110*[sport=gaelic_football] {
111  /* fix #8132 - http://wiki.openstreetmap.org/wiki/Tag:sport=gaelic_football */
112  throwWarning: tr("{0}={1} is deprecated", "sport", "gaelic_football");
113  fixRemove: "sport";
114  fixAdd: "sport=gaelic_games";
115}
116 
117*[power=station] {
118  /* see #8847 / #8961 - http://wiki.openstreetmap.org/wiki/Tag:power=station */
119  throwWarning: tr("{0}={1} is deprecated", "power", "station");
120  suggestAlternative: "power=plant";
121  suggestAlternative: "power=sub_station";
122}
123 
124*[generator:method=dam] {
125  throwWarning: tr("{0}={1} is deprecated", "generator:method", "dam");
126  fixRemove: "generator:method";
127  fixAdd: "generator:method=water-storage";
128}
129 
130*[generator:method=pumped-storage] {
131  throwWarning: tr("{0}={1} is deprecated", "generator:method", "pumped-storage");
132  fixRemove: "generator:method";
133  fixAdd: "generator:method=water-pumped-storage";
134}
135 
136*[generator:method=pumping] {
137  throwWarning: tr("{0}={1} is deprecated", "generator:method", "pumping");
138  fixRemove: "generator:method";
139  fixAdd: "generator:method=water-pumped-storage";
140}
141 
142*[fence_type=chain] {
143  /* see #8962 - http://wiki.openstreetmap.org/wiki/Key:fence_type */
144  throwWarning: tr("{0}={1} is deprecated", "fence_type", "chain");
145  suggestAlternative: "barrier=chain";
146  suggestAlternative: "fence_type=chain_link";
147}
148
149*[building=entrance] {
150  /* see #9000 - http://wiki.openstreetmap.org/wiki/Key:entrance */
151  throwWarning: tr("{0}={1} is deprecated", "building", "entrance");
152  suggestAlternative: "entrance";
153}
154 
155*[board_type=board] {
156  /* see #9213 - Useless tag proposed in internal preset for years */
157  throwWarning: tr("{0}={1} is deprecated", "board_type", "board");
158  fixRemove: "board_type";
159}
160 
161*[man_made=measurement_station] {
162  /* see #8434 - http://wiki.openstreetmap.org/wiki/Proposed_features/monitoring_station */
163  throwWarning: tr("{0}={1} is deprecated", "man_made", "measurement_station");
164  fixRemove: "man_made";
165  fixAdd: "man_made=monitoring_station";
166}
167 
168*[measurement=water_level] {
169  throwWarning: tr("{0}={1} is deprecated", "measurement", "water_level");
170  fixRemove: "measurement";
171  fixAdd: "monitoring:water_level=yes";
172}
173 
174*[measurement=weather] {
175  throwWarning: tr("{0}={1} is deprecated", "measurement", "weather");
176  fixRemove: "measurement";
177  fixAdd: "monitoring:weather=yes";
178}
179 
180*[measurement=seismic] {
181  throwWarning: tr("{0}={1} is deprecated", "measurement", "seismic");
182  fixRemove: "measurement";
183  fixAdd: "monitoring:seismic_activity=yes";
184}
185
186*[monitoring:river_level] {
187  throwWarning: tr("{0} is deprecated", "monitoring:river_level");
188  fixChangeKey: "monitoring:river_level => monitoring:water_level";
189}
190
191*[layer=0] {
192  /* see #9365 - Useless tag layer=0 */
193  throwWarning: tr("{0}={1} is unnecessary", "layer", "0");
194  fixRemove: "layer";
195}
Note: See TracBrowser for help on using the repository browser.