Changeset 12595 in josm


Ignore:
Timestamp:
2017-08-12T17:45:43+02:00 (2 months ago)
Author:
Klumbumbus
Message:

see #11270 - don't warn about missing railway=crossing|level_crossing for questionable cases e.g. when the highway changes from residential to footway at the railway crossing node. This avoids an infinite loop of the validator fix button.

File:
1 edited

Legend:

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

    r12418 r12595  
    129129/* #11270 */
    130130way[railway =~ /^(light_rail|miniature|narrow_gauge|preserved|rail)$/] > node { set .is_in_railway }
    131 way[highway =~ /^(bridleway|cycleway|footway|path|steps)$/] > node[railway != crossing].is_in_railway {
     131way[highway =~ /^(bridleway|cycleway|footway|path|steps)$/] > node { set .is_in_minor_road }
     132way[highway =~ /^(bus_guideway|living_street|motorway|pedestrian|primary|raceway|residential|road|secondary|service|tertiary|track|trunk|unclassified)/] > node { set .is_in_major_road }
     133node[railway!=crossing].is_in_railway.is_in_minor_road!.is_in_major_road {
    132134  throwWarning: tr("pedestrian railway crossing without {0}", "{0.tag}");
    133135  group: tr("missing tag");
    134136  fixAdd: "railway=crossing";
    135137}
    136 way[highway =~ /^(bus_guideway|living_street|motorway|pedestrian|primary|raceway|residential|road|secondary|service|tertiary|track|trunk|unclassified)/] > node[railway != level_crossing].is_in_railway {
     138node[railway!=level_crossing].is_in_railway.is_in_major_road!.is_in_minor_road {
    137139  throwWarning: tr("railway crossing without {0}", "{0.tag}");
    138140  group: tr("missing tag");
Note: See TracChangeset for help on using the changeset viewer.