Changeset 17092 in josm for trunk/resources/data
- Timestamp:
- 2020-10-07T18:46:02+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/resources/data/validator/deprecated.mapcss
r17048 r17092 8 8 assertNoMatch: "way barrier=fence"; 9 9 } 10 10 11 11 *[barrier=wood_fence] { 12 12 throwWarning: tr("{0} is deprecated", "{0.tag}"); … … 16 16 fixAdd: "fence_type=wood"; 17 17 } 18 18 19 19 node[highway=ford] { 20 20 throwWarning: tr("{0} is deprecated", "{0.tag}"); … … 29 29 group: tr("deprecated tagging"); 30 30 } 31 31 32 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */ 32 33 way[class] { 33 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */34 34 throwWarning: tr("{0} is deprecated", "{0.key}"); 35 35 suggestAlternative: "highway"; 36 36 group: tr("deprecated tagging"); 37 37 } 38 39 38 *[highway=stile] { 40 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */41 39 throwWarning: tr("{0} is deprecated", "{0.tag}"); 42 40 suggestAlternative: "barrier=stile"; … … 45 43 fixAdd: "barrier=stile"; 46 44 } 47 48 45 *[highway=incline] { 49 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */50 46 throwWarning: tr("{0} is deprecated", "{0.tag}"); 51 47 suggestAlternative: "incline"; 52 48 group: tr("deprecated tagging"); 53 49 } 54 55 50 *[highway=incline_steep] { 56 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */57 51 throwWarning: tr("{0} is deprecated", "{0.tag}"); 58 52 suggestAlternative: "incline"; 59 53 group: tr("deprecated tagging"); 60 54 } 61 62 55 *[highway=unsurfaced] { 63 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */64 56 throwWarning: tr("{0} is deprecated", "{0.tag}"); 65 57 suggestAlternative: "highway=* + surface=unpaved"; … … 68 60 fixAdd: "surface=unpaved"; 69 61 } 70 71 62 *[landuse=wood] { 72 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */73 63 throwWarning: tr("{0} is deprecated", "{0.tag}"); 74 64 suggestAlternative: "landuse=forest"; … … 76 66 group: tr("deprecated tagging"); 77 67 } 78 79 68 *[natural=marsh] { 80 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */81 69 throwWarning: tr("{0} is deprecated", "{0.tag}"); 82 70 suggestAlternative: "natural=wetland + wetland=marsh"; … … 85 73 fixAdd: "wetland=marsh"; 86 74 } 87 88 75 *[highway=byway] { 89 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */ 90 throwWarning: tr("{0} is deprecated", "{0.tag}"); 91 group: tr("deprecated tagging"); 92 } 93 76 throwWarning: tr("{0} is deprecated", "{0.tag}"); 77 group: tr("deprecated tagging"); 78 } 94 79 *[power_source] { 95 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */96 80 throwWarning: tr("{0} is deprecated", "{0.key}"); 97 81 suggestAlternative: "generator:source"; 98 82 group: tr("deprecated tagging"); 99 83 } 100 101 84 *[power_rating] { 102 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */103 85 throwWarning: tr("{0} is deprecated", "{0.key}"); 104 86 suggestAlternative: "generator:output"; 105 87 group: tr("deprecated tagging"); 106 88 } 107 89 108 90 *[shop=antique] { 109 91 throwWarning: tr("{0} is deprecated", "{0.tag}"); … … 129 111 130 112 *[shop=organic] { 131 /* from http://wiki.openstreetmap.org/wiki/Tag:shop=organic */132 113 throwWarning: tr("{0} is deprecated", "{0.tag}"); 133 114 suggestAlternative: "shop=* + organic=yes"; … … 151 132 152 133 *[bicycle_parking=sheffield] { 153 /* from http://wiki.openstreetmap.org/wiki/Key:bicycle_parking */154 134 throwWarning: tr("{0} is deprecated", "{0.tag}"); 155 135 suggestAlternative: "bicycle_parking=stands"; … … 157 137 fixAdd: "bicycle_parking=stands"; 158 138 } 159 139 160 140 *[amenity=emergency_phone] { 161 /* http://wiki.openstreetmap.org/wiki/Tag:emergency=phone */162 141 throwWarning: tr("{0} is deprecated", "{0.tag}"); 163 142 suggestAlternative: "emergency=phone"; … … 166 145 fixAdd: "emergency=phone"; 167 146 } 168 147 148 /* #8132 */ 169 149 *[sport=gaelic_football] { 170 /* fix #8132 - http://wiki.openstreetmap.org/wiki/Tag:sport=gaelic_football */171 150 throwWarning: tr("{0} is deprecated", "{0.tag}"); 172 151 suggestAlternative: "sport=gaelic_games"; … … 174 153 fixAdd: "sport=gaelic_games"; 175 154 } 176 155 156 /* #8847, #8961 */ 177 157 *[power=station] { 178 /* see #8847 / #8961 - http://wiki.openstreetmap.org/wiki/Tag:power=station */179 158 throwWarning: tr("{0} is deprecated", "{0.tag}"); 180 159 suggestAlternative: "power=plant"; … … 210 189 fixAdd: "generator:method=water-storage"; 211 190 } 212 191 213 192 *[generator:method=pumped-storage] { 214 193 throwWarning: tr("{0} is deprecated", "{0.tag}"); … … 217 196 fixAdd: "generator:method=water-pumped-storage"; 218 197 } 219 198 220 199 *[generator:method=pumping] { 221 200 throwWarning: tr("{0} is deprecated", "{0.tag}"); … … 224 203 fixAdd: "generator:method=water-pumped-storage"; 225 204 } 226 205 206 /* #8962 */ 227 207 *[fence_type=chain] { 228 /* see #8962 - http://wiki.openstreetmap.org/wiki/Key:fence_type */229 208 throwWarning: tr("{0} is deprecated", "{0.tag}"); 230 209 suggestAlternative: "barrier=chain"; … … 233 212 } 234 213 214 /* #9000 */ 235 215 *[building=entrance] { 236 /* see #9000 - http://wiki.openstreetmap.org/wiki/Key:entrance */237 216 throwWarning: tr("{0} is deprecated", "{0.tag}"); 238 217 suggestAlternative: "entrance"; 239 218 group: tr("deprecated tagging"); 240 219 } 241 220 221 /* #9213 */ 242 222 *[board_type=board] { 243 /* see #9213 - Useless tag proposed in internal preset for years */244 223 throwWarning: tr("{0} is deprecated", "{0.tag}"); 245 224 group: tr("deprecated tagging"); 246 225 fixRemove: "board_type"; 247 226 } 248 227 228 /* #8434 */ 249 229 *[man_made=measurement_station] { 250 /* see #8434 - http://wiki.openstreetmap.org/wiki/Proposed_features/monitoring_station */251 230 throwWarning: tr("{0} is deprecated", "{0.tag}"); 252 231 suggestAlternative: "man_made=monitoring_station"; … … 254 233 fixAdd: "man_made=monitoring_station"; 255 234 } 256 235 257 236 *[measurement=water_level] { 258 237 throwWarning: tr("{0} is deprecated", "{0.tag}"); … … 262 241 fixAdd: "monitoring:water_level=yes"; 263 242 } 264 243 265 244 *[measurement=weather] { 266 245 throwWarning: tr("{0} is deprecated", "{0.tag}"); … … 270 249 fixAdd: "monitoring:weather=yes"; 271 250 } 272 251 273 252 *[measurement=seismic] { 274 253 throwWarning: tr("{0} is deprecated", "{0.tag}"); … … 293 272 } 294 273 274 /* #9554 */ 295 275 *[emergency=aed] { 296 /* see #9554 - http://wiki.openstreetmap.org/wiki/Proposed_features/automated_external_defibrillator */297 276 throwWarning: tr("{0} is deprecated", "{0.tag}"); 298 277 suggestAlternative: "emergency=defibrillator"; … … 314 293 } 315 294 316 /* see #10000, http://wiki.openstreetmap.org/wiki/Tag%3Aaccess%3Ddesignated*/295 /* #10000 */ 317 296 *[access=designated] { 318 297 throwWarning: tr("''{0}'' is meaningless, use more specific tags, e.g. ''{1}''", "access=designated", "bicycle=designated"); … … 324 303 } 325 304 326 /* see #10085 - give warning for fixme=yes*/305 /* #10085 */ 327 306 *[fixme=yes], *[FIXME=yes] { 328 307 throwWarning: tr("{0}={1} is unspecific. Instead of ''{1}'' please give more information about what exactly should be fixed.", "{0.key}", "{0.value}"); … … 343 322 } 344 323 345 /* see#10107, #10108, #10929, #13391 - http://wiki.openstreetmap.org/wiki/Proposed_features/leaftype#Features.2FPages_affected */324 /* #10107, #10108, #10929, #13391 - http://wiki.openstreetmap.org/wiki/Proposed_features/leaftype#Features.2FPages_affected */ 346 325 *[type=broad_leaved], 347 326 *[type=broad_leafed] { … … 352 331 fixAdd: "leaf_type=broadleaved"; 353 332 } 354 355 333 *[wood=coniferous], 356 334 *[type=coniferous], … … 362 340 fixAdd: "leaf_type=needleleaved"; 363 341 } 364 365 342 *[wood=mixed] { 366 343 throwWarning: tr("{0} is deprecated", "{0.tag}"); … … 370 347 fixAdd: "leaf_type=mixed"; 371 348 } 372 373 349 *[wood=evergreen], 374 350 *[type=evergreen] { … … 379 355 fixAdd: "leaf_cycle=evergreen"; 380 356 } 381 382 357 *[type=deciduous], 383 358 *[type=deciduos] { … … 388 363 fixAdd: "leaf_cycle=deciduous"; 389 364 } 390 391 365 *[wood=deciduous] { 392 366 throwWarning: tr("{0} is deprecated", "{0.tag}"); … … 394 368 group: tr("deprecated tagging"); 395 369 } 396 397 370 node[type=palm], 398 371 way[type=palm] { … … 410 383 } 411 384 412 /* see#10447 - https://wiki.openstreetmap.org/wiki/Proposed_features/Bridge_types#Deprecated_bridge_key_values */385 /* #10447 - https://wiki.openstreetmap.org/wiki/Proposed_features/Bridge_types#Deprecated_bridge_key_values */ 413 386 *[bridge=causeway] { 414 387 throwWarning: tr("{0} is deprecated", "{0.tag}"); … … 439 412 } 440 413 441 /* See#10530 - Incorrect tag proposed in internal preset for years */414 /* #10530 - Incorrect tag proposed in internal preset for years */ 442 415 *[fee=interval], 443 416 *[lit=interval], … … 447 420 } 448 421 449 /* See#10582 - JOSM supported this tag as "don't upload this" feature, before the introduction of upload flag at layer level */422 /* #10582 - JOSM supported this tag as "don't upload this" feature, before the introduction of upload flag at layer level */ 450 423 *[/josm\/ignore/] { 451 424 throwError: tr("{0} is deprecated. Please delete this object and use a private layer instead", "{0.key}"); … … 454 427 } 455 428 456 /* see#8281 */429 /* #8281 */ 457 430 *[sport=diving] { 458 431 throwWarning: tr("{0} is deprecated", "{0.tag}"); … … 462 435 } 463 436 464 /* see#8281 */437 /* #8281 */ 465 438 *[parking=park_and_ride] { 466 439 throwWarning: tr("{0} is deprecated", "{0.tag}"); … … 472 445 } 473 446 474 /* see#19287, #18334, #17950, #10661, #10837, #11737, #12771 */447 /* #19287, #18334, #17950, #10661, #10837, #11737, #12771 */ 475 448 *[playground=yes], 476 449 *[manhole=plain], … … 492 465 } 493 466 494 /* see#10693 - http://wiki.openstreetmap.org/wiki/Proposed_features/drop_recommendation_for_place_name , #10837 */467 /* #10693 - http://wiki.openstreetmap.org/wiki/Proposed_features/drop_recommendation_for_place_name , #10837 */ 495 468 *[place_name][!name] { 496 469 throwWarning: tr("{0} should be replaced with {1}", "{0.key}", "{1.key}"); … … 526 499 } 527 500 528 /* see#10837 */501 /* #10837 */ 529 502 *[building][levels], 530 503 *[building:part=yes][levels] { … … 535 508 } 536 509 537 /* see#10691 */510 /* #10691 */ 538 511 *[protected_class] { 539 512 throwWarning: tr("{0} is deprecated", "{0.key}"); … … 543 516 } 544 517 545 /* see#11070 */518 /* #11070 */ 546 519 *[kerb=unknown], 547 520 *[lock=unknown], … … 557 530 } 558 531 559 /* unclear definition, see#11183 */532 /* #11183 */ 560 533 *[sport=skiing] { 561 534 throwWarning: tr("Definition of {0} is unclear", "{0.tag}"); … … 564 537 } 565 538 566 /* see#11223 */539 /* #11223 */ 567 540 *[waterway=wadi] { 568 541 throwWarning: tr("{0} is deprecated", "{0.tag}"); … … 572 545 } 573 546 574 /* see#10346, #15667 (waterway has its own rules in unnecessary.mapcss) */547 /* #10346, #15667 (waterway has its own rules in unnecessary.mapcss) */ 575 548 way[oneway=1][!waterway] { 576 549 throwWarning: tr("{0} is deprecated", "{0.tag}"); … … 580 553 } 581 554 582 /* see#11329, #15667 */555 /* #11329, #15667 */ 583 556 way[oneway=-1][!waterway] { 584 557 throwWarning: tr("{0} is not recommended. Use the Reverse Ways function from the Tools menu.", "{0.tag}"); … … 591 564 } 592 565 593 /* see#10329, #15877 */566 /* #10329, #15877 */ 594 567 /* simple key change */ 595 568 *[color][!colour] { … … 685 658 } 686 659 687 /* see#11234 */660 /* #11234 */ 688 661 *[/=|\+|\/|&|<|>|;|'|"|%|#|@|\\|,|\.|\{|\}|\?|\*|\^|\$/] { 689 662 throwWarning: tr("{0}", "{0.key}"); … … 691 664 } 692 665 693 /* see#11330, #18642 */666 /* #11330, #18642 */ 694 667 *[/^.$/], 695 668 node[/^..$/], … … 706 679 } 707 680 708 /* see#11439 */681 /* #11439 */ 709 682 *[sport=hockey] { 710 683 throwWarning: tr("{0} is deprecated", "{0.tag}"); … … 714 687 } 715 688 716 /* see#11471 */689 /* #11471 */ 717 690 *[sport=billard], 718 691 *[sport=billards], … … 724 697 } 725 698 726 /* see#11499, #16928 */699 /* #11499, #16928 */ 727 700 *[payment:credit_cards=yes] { 728 701 throwWarning: tr("{0} is inaccurate. Use separate tags for each specific type, e.g. {1} or {2}.", "{0.tag}", "payment:mastercard=yes", "payment:visa=yes"); … … 738 711 } 739 712 740 /* defunct payment cards*/713 /* #16253 */ 741 714 *[payment:ep_quick], 742 715 *[payment:ep_cash], … … 748 721 } 749 722 750 /* see#8717 */723 /* #8717 */ 751 724 *[kp][highway=milestone], 752 725 *[kp][railway=milestone], … … 810 783 group: tr("deprecated tagging"); 811 784 } 812 /* #12135 - Tag removed rom rendering https://github.com/gravitystorm/openstreetmap-carto/pull/1830*/785 /* #12135 */ 813 786 *[landuse=conservation] { 814 787 throwWarning: tr("{0} is deprecated", "{0.tag}");
Note:
See TracChangeset
for help on using the changeset viewer.