Changeset 7490 in josm for trunk/data/validator


Ignore:
Timestamp:
2014-09-04T18:22:52+02:00 (5 years ago)
Author:
Don-vip
Message:

fix #10447 - support new bridge scheme:

  • presets: update bridge values, add bridge:structure, bridge:movable, new items for bridge=movable and bridge:support, items moved to new group "Man Made/Bridges" (based on work from RicoZ and geozeisig)
  • validator: new deprecation and combinations warnings
Location:
trunk/data/validator
Files:
2 edited

Legend:

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

    r7488 r7490  
    4646*[have_riverbank               ][!waterway],
    4747*[border_type                  ][!boundary],
     48*[bridge:structure             ][!bridge],
    4849*[source:date                  ][!source],
    4950*[source:name                  ][!name],
     
    100101*[castle_type                  ][historic!=castle],
    101102*[reservoir_type               ][landuse!=reservoir][water!=reservoir],
     103*[bridge:movable               ][bridge!=movable],
    102104*[bunker_type                  ][military!=bunker] {
    103105  throwWarning: tr("{0} without {1}", "{0.key}", "{1.tag}");
  • trunk/data/validator/deprecated.mapcss

    r7449 r7490  
    261261  assertMatch: "way natural=land";
    262262}
     263
     264/* see #10447 - https://wiki.openstreetmap.org/wiki/Proposed_features/Bridge_types#Deprecated_bridge_key_values */
     265*[bridge=causeway] {
     266  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
     267  suggestAlternative: "ford=yes";
     268  suggestAlternative: "bridge=low_water_crossing";
     269  suggestAlternative: "embankment=yes";
     270}
     271
     272*[bridge=swing] {
     273  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
     274  suggestAlternative: "bridge:movable=swing";
     275  suggestAlternative: "bridge:structure=simple-suspension";
     276}
     277
     278*[bridge=suspension] {
     279  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
     280  fixAdd: "bridge=yes";
     281  fixAdd: "bridge:structure=suspension";
     282}
Note: See TracChangeset for help on using the changeset viewer.