Changeset 9551 in josm for trunk/data/validator
- Timestamp:
- 2016-01-20T22:37:01+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/validator/deprecated.mapcss
r9506 r9551 1 1 *[barrier=wire_fence] { 2 throwWarning: tr("{0} ={1} is deprecated", "{0.key}", "{0.value}");2 throwWarning: tr("{0} is deprecated", "{0.tag}"); 3 3 fixAdd: "barrier=fence"; 4 4 fixAdd: "fence_type=chain_link"; … … 8 8 9 9 *[barrier=wood_fence] { 10 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 10 throwWarning: tr("{0} is deprecated", "{0.tag}"); 11 suggestAlternative: "barrier=fence + fence_type=wood"; 11 12 fixAdd: "barrier=fence"; 12 13 fixAdd: "fence_type=wood"; … … 14 15 15 16 *[highway=ford] { 16 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 17 throwWarning: tr("{0} is deprecated", "{0.tag}"); 18 suggestAlternative: "ford=yes"; 17 19 fixRemove: "highway"; 18 20 fixAdd: "ford=yes"; … … 27 29 *[highway=stile] { 28 30 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */ 29 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 31 throwWarning: tr("{0} is deprecated", "{0.tag}"); 32 suggestAlternative: "barrier=stile"; 30 33 fixRemove: "highway"; 31 34 fixAdd: "barrier=stile"; … … 34 37 *[highway=incline] { 35 38 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */ 36 throwWarning: tr("{0} ={1} is deprecated", "{0.key}", "{0.value}");39 throwWarning: tr("{0} is deprecated", "{0.tag}"); 37 40 suggestAlternative: "incline"; 38 41 } … … 40 43 *[highway=incline_steep] { 41 44 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */ 42 throwWarning: tr("{0} ={1} is deprecated", "{0.key}", "{0.value}");45 throwWarning: tr("{0} is deprecated", "{0.tag}"); 43 46 suggestAlternative: "incline"; 44 47 } … … 46 49 *[highway=unsurfaced] { 47 50 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */ 48 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 51 throwWarning: tr("{0} is deprecated", "{0.tag}"); 52 suggestAlternative: "highway=* + surface=unpaved"; 49 53 fixAdd: "highway=road"; 50 54 fixAdd: "surface=unpaved"; … … 53 57 *[landuse=wood] { 54 58 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */ 55 throwWarning: tr("{0} ={1} is deprecated", "{0.key}", "{0.value}");59 throwWarning: tr("{0} is deprecated", "{0.tag}"); 56 60 suggestAlternative: "landuse=forest"; 57 61 suggestAlternative: "natural=wood"; … … 60 64 *[natural=marsh] { 61 65 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */ 62 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 66 throwWarning: tr("{0} is deprecated", "{0.tag}"); 67 suggestAlternative: "natural=wetland + wetland=marsh"; 63 68 fixAdd: "natural=wetland"; 64 69 fixAdd: "wetland=marsh"; … … 67 72 *[highway=byway] { 68 73 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */ 69 throwWarning: tr("{0} ={1} is deprecated", "{0.key}", "{0.value}");74 throwWarning: tr("{0} is deprecated", "{0.tag}"); 70 75 } 71 76 … … 83 88 84 89 *[shop=antique] { 85 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 90 throwWarning: tr("{0} is deprecated", "{0.tag}"); 91 suggestAlternative: "shop=antiques"; 86 92 fixAdd: "shop=antiques"; 87 93 } 88 94 89 95 *[shop=bags] { 90 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 96 throwWarning: tr("{0} is deprecated", "{0.tag}"); 97 suggestAlternative: "shop=bag"; 91 98 fixAdd: "shop=bag"; 92 99 } … … 94 101 *[shop=organic] { 95 102 /* from http://wiki.openstreetmap.org/wiki/Tag:shop=organic */ 96 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 103 throwWarning: tr("{0} is deprecated", "{0.tag}"); 104 suggestAlternative: "shop=supermarket + organic=only"; 97 105 fixAdd: "shop=supermarket"; 98 106 fixAdd: "organic=only"; … … 100 108 101 109 *[shop=pets] { 102 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 110 throwWarning: tr("{0} is deprecated", "{0.tag}"); 111 suggestAlternative: "shop=pet"; 103 112 fixAdd: "shop=pet"; 104 113 } 105 114 106 115 *[shop=pharmacy] { 107 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 116 throwWarning: tr("{0} is deprecated", "{0.tag}"); 117 suggestAlternative: "amenity=pharmacy"; 108 118 fixChangeKey: "shop => amenity"; 109 119 } … … 111 121 *[bicycle_parking=sheffield] { 112 122 /* from http://wiki.openstreetmap.org/wiki/Key:bicycle_parking */ 113 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 123 throwWarning: tr("{0} is deprecated", "{0.tag}"); 124 suggestAlternative: "bicycle_parking=stands"; 114 125 fixAdd: "bicycle_parking=stands"; 115 126 } … … 117 128 *[amenity=emergency_phone] { 118 129 /* http://wiki.openstreetmap.org/wiki/Tag:emergency=phone */ 119 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 130 throwWarning: tr("{0} is deprecated", "{0.tag}"); 131 suggestAlternative: "emergency=phone"; 120 132 fixRemove: "amenity"; 121 133 fixAdd: "emergency=phone"; … … 124 136 *[sport=gaelic_football] { 125 137 /* fix #8132 - http://wiki.openstreetmap.org/wiki/Tag:sport=gaelic_football */ 126 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 138 throwWarning: tr("{0} is deprecated", "{0.tag}"); 139 suggestAlternative: "sport=gaelic_games"; 127 140 fixAdd: "sport=gaelic_games"; 128 141 } … … 130 143 *[power=station] { 131 144 /* see #8847 / #8961 - http://wiki.openstreetmap.org/wiki/Tag:power=station */ 132 throwWarning: tr("{0} ={1} is deprecated", "{0.key}", "{0.value}");145 throwWarning: tr("{0} is deprecated", "{0.tag}"); 133 146 suggestAlternative: "power=plant"; 134 147 suggestAlternative: "power=substation"; … … 136 149 137 150 *[power=sub_station] { 138 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 151 throwWarning: tr("{0} is deprecated", "{0.tag}"); 152 suggestAlternative: "power=substation"; 139 153 fixAdd: "power=substation"; 140 154 } 141 155 142 156 *[generator:method=dam] { 143 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 157 throwWarning: tr("{0} is deprecated", "{0.tag}"); 158 suggestAlternative: "generator:method=water-storage"; 144 159 fixAdd: "generator:method=water-storage"; 145 160 } 146 161 147 162 *[generator:method=pumped-storage] { 148 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 163 throwWarning: tr("{0} is deprecated", "{0.tag}"); 164 suggestAlternative: "generator:method=water-pumped-storage"; 149 165 fixAdd: "generator:method=water-pumped-storage"; 150 166 } 151 167 152 168 *[generator:method=pumping] { 153 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 169 throwWarning: tr("{0} is deprecated", "{0.tag}"); 170 suggestAlternative: "generator:method=water-pumped-storage"; 154 171 fixAdd: "generator:method=water-pumped-storage"; 155 172 } … … 157 174 *[fence_type=chain] { 158 175 /* see #8962 - http://wiki.openstreetmap.org/wiki/Key:fence_type */ 159 throwWarning: tr("{0} ={1} is deprecated", "{0.key}", "{0.value}");176 throwWarning: tr("{0} is deprecated", "{0.tag}"); 160 177 suggestAlternative: "barrier=chain"; 161 178 suggestAlternative: "fence_type=chain_link"; … … 164 181 *[building=entrance] { 165 182 /* see #9000 - http://wiki.openstreetmap.org/wiki/Key:entrance */ 166 throwWarning: tr("{0} ={1} is deprecated", "{0.key}", "{0.value}");183 throwWarning: tr("{0} is deprecated", "{0.tag}"); 167 184 suggestAlternative: "entrance"; 168 185 } … … 170 187 *[board_type=board] { 171 188 /* see #9213 - Useless tag proposed in internal preset for years */ 172 throwWarning: tr("{0} ={1} is deprecated", "{0.key}", "{0.value}");189 throwWarning: tr("{0} is deprecated", "{0.tag}"); 173 190 fixRemove: "board_type"; 174 191 } … … 176 193 *[man_made=measurement_station] { 177 194 /* see #8434 - http://wiki.openstreetmap.org/wiki/Proposed_features/monitoring_station */ 178 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 195 throwWarning: tr("{0} is deprecated", "{0.tag}"); 196 suggestAlternative: "man_made=monitoring_station"; 179 197 fixAdd: "man_made=monitoring_station"; 180 198 } 181 199 182 200 *[measurement=water_level] { 183 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 201 throwWarning: tr("{0} is deprecated", "{0.tag}"); 202 suggestAlternative: "monitoring:water_level=yes"; 184 203 fixRemove: "measurement"; 185 204 fixAdd: "monitoring:water_level=yes"; … … 187 206 188 207 *[measurement=weather] { 189 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 208 throwWarning: tr("{0} is deprecated", "{0.tag}"); 209 suggestAlternative: "monitoring:weather=yes"; 190 210 fixRemove: "measurement"; 191 211 fixAdd: "monitoring:weather=yes"; … … 193 213 194 214 *[measurement=seismic] { 195 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 215 throwWarning: tr("{0} is deprecated", "{0.tag}"); 216 suggestAlternative: "monitoring:seismic_activity=yes"; 196 217 fixRemove: "measurement"; 197 218 fixAdd: "monitoring:seismic_activity=yes"; … … 200 221 *[monitoring:river_level] { 201 222 throwWarning: tr("{0} is deprecated", "{0.key}"); 223 suggestAlternative: "monitoring:water_level"; 202 224 fixChangeKey: "monitoring:river_level => monitoring:water_level"; 203 225 } … … 205 227 *[stay] { 206 228 throwWarning: tr("{0} is deprecated", "{0.key}"); 229 suggestAlternative: "maxstay"; 207 230 fixChangeKey: "stay => maxstay"; 208 231 } … … 210 233 *[emergency=aed] { 211 234 /* see #9554 - http://wiki.openstreetmap.org/wiki/Proposed_features/automated_external_defibrillator */ 212 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 235 throwWarning: tr("{0} is deprecated", "{0.tag}"); 236 suggestAlternative: "emergency=defibrillator"; 213 237 fixAdd: "emergency=defibrillator"; 214 238 } … … 255 279 *[type=broad_leaved], 256 280 *[type=broad_leafed] { 257 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 281 throwWarning: tr("{0} is deprecated", "{0.tag}"); 282 suggestAlternative: "leaf_type=broadleaved"; 258 283 fixRemove: "{0.key}"; 259 284 fixAdd: "leaf_type=broadleaved"; 260 } 285 }< 261 286 262 287 *[wood=coniferous], 263 288 *[type=coniferous], 264 289 *[type=conifer] { 265 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 290 throwWarning: tr("{0} is deprecated", "{0.tag}"); 291 suggestAlternative: "leaf_type=needleleaved"; 266 292 fixRemove: "{0.key}"; 267 293 fixAdd: "leaf_type=needleleaved"; … … 269 295 270 296 *[wood=mixed] { 271 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 297 throwWarning: tr("{0} is deprecated", "{0.tag}"); 298 suggestAlternative: "leaf_type=mixed"; 272 299 fixRemove: "wood"; 273 300 fixAdd: "leaf_type=mixed"; … … 276 303 *[wood=evergreen], 277 304 *[type=evergreen] { 278 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 305 throwWarning: tr("{0} is deprecated", "{0.tag}"); 306 suggestAlternative: "leaf_cycle=evergreen"; 279 307 fixRemove: "{0.key}"; 280 308 fixAdd: "leaf_cycle=evergreen"; … … 283 311 *[type=deciduous], 284 312 *[type=deciduos] { 285 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 313 throwWarning: tr("{0} is deprecated", "{0.tag}"); 314 suggestAlternative: "leaf_cycle=deciduous"; 286 315 fixRemove: "type"; 287 316 fixAdd: "leaf_cycle=deciduous"; … … 289 318 290 319 *[natural=land] { 291 throwWarning: tr("{0} ={1} is deprecated. Please use instead a multipolygon.", "{0.key}", "{0.value}");320 throwWarning: tr("{0} is deprecated. Please use instead a multipolygon.", "{0.tag}"); 292 321 assertMatch: "way natural=land"; 293 322 } … … 295 324 /* see #10447 - https://wiki.openstreetmap.org/wiki/Proposed_features/Bridge_types#Deprecated_bridge_key_values */ 296 325 *[bridge=causeway] { 297 throwWarning: tr("{0} ={1} is deprecated", "{0.key}", "{0.value}");326 throwWarning: tr("{0} is deprecated", "{0.tag}"); 298 327 suggestAlternative: "ford=yes"; 299 328 suggestAlternative: "bridge=low_water_crossing"; … … 302 331 303 332 *[bridge=swing] { 304 throwWarning: tr("{0} ={1} is deprecated", "{0.key}", "{0.value}");333 throwWarning: tr("{0} is deprecated", "{0.tag}"); 305 334 suggestAlternative: "bridge:movable=swing"; 306 335 suggestAlternative: "bridge:structure=simple-suspension"; … … 308 337 309 338 *[bridge=suspension] { 310 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 339 throwWarning: tr("{0} is deprecated", "{0.tag}"); 340 suggestAlternative: "bridge=yes + bridge:structure=suspension"; 311 341 fixAdd: "bridge=yes"; 312 342 fixAdd: "bridge:structure=suspension"; … … 336 366 *[parking=park_and_ride] { 337 367 throwWarning: tr("{0} is deprecated", "{0.tag}"); 368 suggestAlternative: "amenity=parking + park_ride=yes"; 338 369 fixRemove: "parking"; 339 370 fixAdd: "amenity=parking"; … … 366 397 } 367 398 368 *[waterway=water_point], 399 *[waterway=water_point] { 400 throwWarning: tr("{0} is deprecated", "{0.tag}"); 401 suggestAlternative: "amenity=water_point"; 402 fixChangeKey: "waterway => amenity"; 403 } 369 404 *[waterway=waste_disposal] { 370 405 throwWarning: tr("{0} is deprecated", "{0.tag}"); 406 suggestAlternative: "amenity=waste_disposal"; 371 407 fixChangeKey: "waterway => amenity"; 372 408 } 373 409 *[waterway=mooring] { 374 410 throwWarning: tr("{0} is deprecated", "{0.tag}"); 411 suggestAlternative: "mooring=yes"; 375 412 fixRemove: "waterway"; 376 413 fixAdd: "mooring=yes";
Note:
See TracChangeset
for help on using the changeset viewer.