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

Last change on this file since 6550 was 6548, checked in by simon04, 11 years ago

see #9414 - MapCSS-based tagchecker: migrate remaining tagchecks

All former tagchecker.cfg checks are now located in data/validator/*mapcss :-)

File size: 5.5 KB
Line 
1*[barrier=wire_fence] {
2 throwWarning: tr("{0}={1} is deprecated", "barrier", "wire_fence");
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", "barrier", "wood_fence");
11 fixAdd: "barrier=fence";
12 fixAdd: "fence_type=wood";
13}
14
15*[highway=ford] {
16 throwWarning: tr("{0}={1} is deprecated", "highway", "ford");
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", "class");
24 suggestAlternative: "highway";
25}
26
27*[highway=stile] {
28 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
29 throwWarning: tr("{0}={1} is deprecated", "highway", "stile");
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", "highway", "incline");
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", "highway", "incline");
43 suggestAlternative: "incline";
44}
45
46*[highway=unsurfaced] {
47 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
48 throwWarning: tr("{0}={1} is deprecated", "highway", "unsurfaced");
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", "landuse", "wood");
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", "natural", "marsh");
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", "highway", "byway");
70}
71
72*[power_source] {
73 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
74 throwWarning: tr("{0} is deprecated", "power_source");
75 suggestAlternative: "generator:source";
76}
77
78*[power_rating] {
79 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
80 throwWarning: tr("{0} is deprecated", "power_rating");
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", "shop", "organic");
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", "bicycle_parking", "sheffield");
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", "amenity", "emergency_phone");
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", "sport", "gaelic_football");
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", "power", "station");
113 suggestAlternative: "power=plant";
114 suggestAlternative: "power=sub_station";
115}
116
117*[generator:method=dam] {
118 throwWarning: tr("{0}={1} is deprecated", "generator:method", "dam");
119 fixAdd: "generator:method=water-storage";
120}
121
122*[generator:method=pumped-storage] {
123 throwWarning: tr("{0}={1} is deprecated", "generator:method", "pumped-storage");
124 fixAdd: "generator:method=water-pumped-storage";
125}
126
127*[generator:method=pumping] {
128 throwWarning: tr("{0}={1} is deprecated", "generator:method", "pumping");
129 fixAdd: "generator:method=water-pumped-storage";
130}
131
132*[fence_type=chain] {
133 /* see #8962 - http://wiki.openstreetmap.org/wiki/Key:fence_type */
134 throwWarning: tr("{0}={1} is deprecated", "fence_type", "chain");
135 suggestAlternative: "barrier=chain";
136 suggestAlternative: "fence_type=chain_link";
137}
138
139*[building=entrance] {
140 /* see #9000 - http://wiki.openstreetmap.org/wiki/Key:entrance */
141 throwWarning: tr("{0}={1} is deprecated", "building", "entrance");
142 suggestAlternative: "entrance";
143}
144
145*[board_type=board] {
146 /* see #9213 - Useless tag proposed in internal preset for years */
147 throwWarning: tr("{0}={1} is deprecated", "board_type", "board");
148 fixRemove: "board_type";
149}
150
151*[man_made=measurement_station] {
152 /* see #8434 - http://wiki.openstreetmap.org/wiki/Proposed_features/monitoring_station */
153 throwWarning: tr("{0}={1} is deprecated", "man_made", "measurement_station");
154 fixAdd: "man_made=monitoring_station";
155}
156
157*[measurement=water_level] {
158 throwWarning: tr("{0}={1} is deprecated", "measurement", "water_level");
159 fixRemove: "measurement";
160 fixAdd: "monitoring:water_level=yes";
161}
162
163*[measurement=weather] {
164 throwWarning: tr("{0}={1} is deprecated", "measurement", "weather");
165 fixRemove: "measurement";
166 fixAdd: "monitoring:weather=yes";
167}
168
169*[measurement=seismic] {
170 throwWarning: tr("{0}={1} is deprecated", "measurement", "seismic");
171 fixRemove: "measurement";
172 fixAdd: "monitoring:seismic_activity=yes";
173}
174
175*[monitoring:river_level] {
176 throwWarning: tr("{0} is deprecated", "monitoring:river_level");
177 fixChangeKey: "monitoring:river_level => monitoring:water_level";
178}
Note: See TracBrowser for help on using the repository browser.