Changeset 9435 in josm


Ignore:
Timestamp:
2016-01-13T21:26:40+01:00 (4 years ago)
Author:
Klumbumbus
Message:

fix #12276 - deprecate some tags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/validator/deprecated.mapcss

    r9434 r9435  
    346346*[aerialway=yes][!public_transport],
    347347*[amenity=yes],
     348*[shop="*"],
    348349*[place=yes] {
    349350  throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by a specific value.", "{0.key}", "{0.value}");
     
    600601*[shop=fish] {
    601602  throwWarning: tr("{0} is deprecated", "{0.tag}");
    602   suggestAlternative: "shop=seafood, shop=pet or shop=fishing";
     603  suggestAlternative: "shop=seafood";
     604  suggestAlternative: "shop=pet";
     605  suggestAlternative: "shop=fishing";
    603606}
    604607*[shop=betting] {
     
    651654  fixRemove: "power";
    652655}
     656
     657/* #12276 */
     658*[man_made=well] {
     659  throwWarning: tr("{0} is deprecated", "{0.tag}");
     660  suggestAlternative: "man_made=water_well";
     661  suggestAlternative: "man_made=petroleum_well";
     662}
     663*[amenity=dog_bin],
     664*[amenity=dog_waste_bin] {
     665  throwWarning: tr("{0} is deprecated", "{0.tag}");
     666  suggestAlternative: "amenity=waste_basket + waste=dog_excrement + vending=excrement_bags";
     667  fixAdd: "amenity=waste_basket";
     668  fixAdd: "waste=dog_excrement";
     669  fixAdd: "vending=excrement_bags";
     670}
     671*[amenity=artwork] {
     672  throwWarning: tr("{0} is deprecated", "{0.tag}");
     673  suggestAlternative: "tourism=artwork";
     674  fixAdd: "tourism=artwork";
     675  fixRemove: "amenity";
     676}
     677*[amenity=community_center] {
     678  throwWarning: tr("{0} is deprecated", "{0.tag}");
     679  suggestAlternative: "amenity=community_centre";
     680  fixAdd: "amenity=community_centre";
     681}
     682*[man_made=cut_line] {
     683  throwWarning: tr("{0} is deprecated", "{0.tag}");
     684  suggestAlternative: "man_made=cutline";
     685  fixAdd: "man_made=cutline";
     686}
     687*[amenity=park] {
     688  throwWarning: tr("{0} is deprecated", "{0.tag}");
     689  suggestAlternative: "leisure=park";
     690  fixAdd: "leisure=park";
     691  fixRemove: "amenity";
     692}
     693*[amenity=hotel] {
     694  throwWarning: tr("{0} is deprecated", "{0.tag}");
     695  suggestAlternative: "tourism=hotel";
     696  fixAdd: "tourism=hotel";
     697  fixRemove: "amenity";
     698}
     699*[shop=window],
     700*[shop=windows] {
     701  throwWarning: tr("{0} is deprecated", "{0.tag}");
     702  suggestAlternative: "craft=window_construction";
     703  fixAdd: "craft=window_construction";
     704  fixRemove: "shop";
     705}
     706*[amenity=education] {
     707  throwWarning: tr("{0} is deprecated", "{0.tag}");
     708  suggestAlternative: "amenity=college";
     709  suggestAlternative: "amenity=school";
     710  suggestAlternative: "amenity=university";
     711}
     712*[shop=gallery] {
     713  throwWarning: tr("{0} is deprecated", "{0.tag}");
     714  suggestAlternative: "shop=art";
     715  fixAdd: "shop=art";
     716}
     717*[shop=gambling],
     718*[leisure=gambling] {
     719  throwWarning: tr("{0} is deprecated", "{0.tag}");
     720  suggestAlternative: "shop=bookmaker";
     721  suggestAlternative: "shop=lottery";
     722  suggestAlternative: "amenity=casino";
     723  suggestAlternative: "leisure=amusement_arcade";
     724  suggestAlternative: "amenity=gambling";
     725}
     726*[office=real_estate_agent] {
     727  throwWarning: tr("{0} is deprecated", "{0.tag}");
     728  suggestAlternative: "office=estate_agent ";
     729  fixAdd: "office=estate_agent ";
     730}
     731*[shop=glass] {
     732  throwWarning: tr("{0} is deprecated", "{0.tag}");
     733  suggestAlternative: "shop=glaziery";
     734  suggestAlternative: "craft=glaziery";
     735}
     736*[amenity=proposed],
     737*[amenity=proposed],
     738*[amenity=disused],
     739*[shop=disused],
     740*[historic=abandoned] {
     741  throwWarning: tr("{0} is deprecated. Use the {1}: key prefix instead.", "{0.tag}", "{0.value}");
     742}
Note: See TracChangeset for help on using the changeset viewer.