Changeset 9839 in josm for trunk/data/validator


Ignore:
Timestamp:
2016-02-19T22:53:02+01:00 (3 years ago)
Author:
Klumbumbus
Message:

fix #11270 - add validator warning for missing/wrong railway=crossing|level_crossing (modified patch by naoliv)

File:
1 edited

Legend:

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

    r7977 r9839  
    110110  throwWarning: tr("Value of ''{0}'' should either be ''{1}'' or ''{2}''. For sidewalks use ''{3}'' instead.", "{0.key}", "{1.value}", "{2.value}", "sidewalk=left|right|both|no");
    111111}
     112
     113/* #11270 */
     114way[railway =~ /^(light_rail|miniature|narrow_gauge|preserved|rail)$/] > node { set .is_in_railway }
     115way[highway =~ /^(bridleway|cycleway|footway|path|steps)$/] > node[railway != crossing].is_in_railway {
     116  throwWarning: tr("pedestrian railway crossing without {0}", "{0.tag}");
     117  fixAdd: "railway=crossing";
     118}
     119way[highway =~ /^(bus_guideway|living_street|motorway|pedestrian|primary|raceway|residential|road|secondary|service|tertiary|track|trunk|unclassified)/] > node[railway != level_crossing].is_in_railway {
     120  throwWarning: tr("railway crossing without {0}", "{0.tag}");
     121  fixAdd: "railway=level_crossing";
     122}
Note: See TracChangeset for help on using the changeset viewer.