Changeset 6527 in josm for trunk/data/validator


Ignore:
Timestamp:
2013-12-25T01:28:44+01:00 (6 years ago)
Author:
Don-vip
Message:

fix #9458 - tagchecker: detect emergency=permissive and fix it by emergency=yes + remove unecessary fixRemove statements

File:
1 edited

Legend:

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

    r6512 r6527  
    11*[barrier=wire_fence] {
    22  throwWarning: tr("{0}={1} is deprecated", "barrier", "wire_fence");
    3   fixRemove: "barrier";
    43  fixAdd: "barrier=fence";
    54  fixAdd: "fence_type=chain_link";
     
    109*[barrier=wood_fence] {
    1110  throwWarning: tr("{0}={1} is deprecated", "barrier", "wood_fence");
    12   fixRemove: "barrier";
    1311  fixAdd: "barrier=fence";
    1412  fixAdd: "fence_type=wood";
     
    4947  /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
    5048  throwWarning: tr("{0}={1} is deprecated", "highway", "unsurfaced");
    51   fixRemove: "highway";
    5249  fixAdd: "highway=road";
    5350  fixAdd: "incline=unpaved";
     
    6461  /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
    6562  throwWarning: tr("{0}={1} is deprecated", "natural", "marsh");
    66   fixRemove: "natural";
    6763  fixAdd: "natural=wetland";
    6864  fixAdd: "wetland=marsh";
     
    8985  /* from http://wiki.openstreetmap.org/wiki/Tag:shop=organic */
    9086  throwWarning: tr("{0}={1} is deprecated", "shop", "organic");
    91   fixRemove: "shop";
    9287  fixAdd: "shop=supermarket";
    9388  fixAdd: "organic=only";
     
    9792  /* from http://wiki.openstreetmap.org/wiki/Key:bicycle_parking */
    9893  throwWarning: tr("{0}={1} is deprecated", "bicycle_parking", "sheffield");
    99   fixRemove: "bicycle_parking";
    10094  fixAdd: "bicycle_parking=stands";
    10195}
     
    111105  /* fix #8132 - http://wiki.openstreetmap.org/wiki/Tag:sport=gaelic_football */
    112106  throwWarning: tr("{0}={1} is deprecated", "sport", "gaelic_football");
    113   fixRemove: "sport";
    114107  fixAdd: "sport=gaelic_games";
    115108}
     
    124117*[generator:method=dam] {
    125118  throwWarning: tr("{0}={1} is deprecated", "generator:method", "dam");
    126   fixRemove: "generator:method";
    127119  fixAdd: "generator:method=water-storage";
    128120}
     
    130122*[generator:method=pumped-storage] {
    131123  throwWarning: tr("{0}={1} is deprecated", "generator:method", "pumped-storage");
    132   fixRemove: "generator:method";
    133124  fixAdd: "generator:method=water-pumped-storage";
    134125}
     
    136127*[generator:method=pumping] {
    137128  throwWarning: tr("{0}={1} is deprecated", "generator:method", "pumping");
    138   fixRemove: "generator:method";
    139129  fixAdd: "generator:method=water-pumped-storage";
    140130}
     
    162152  /* see #8434 - http://wiki.openstreetmap.org/wiki/Proposed_features/monitoring_station */
    163153  throwWarning: tr("{0}={1} is deprecated", "man_made", "measurement_station");
    164   fixRemove: "man_made";
    165154  fixAdd: "man_made=monitoring_station";
    166155}
     
    194183  fixRemove: "layer";
    195184}
     185
     186*[emergency=permissive] {
     187  /* see #9458 - emergency=permissive makes no sense */
     188  throwWarning: tr("{0}={1} makes no sense", "emergency", "permissive");
     189  fixAdd: "emergency=yes";
     190  assertMatch: "way emergency=permissive";
     191  assertNoMatch: "way emergency=designated";
     192}
Note: See TracChangeset for help on using the changeset viewer.