Changeset 9839 in josm


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

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

Location:
trunk/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/defaultpresets.xml

    r9835 r9839  
    24422442        </item> <!-- Rail -->
    24432443        <item name="Narrow Gauge Rail" icon="styles/standard/transport/railway/narrow_gauge_rail.svg" type="way" preset_name_label="true">
    2444             <link href="http://wiki.openstreetmap.org/wiki/Tag:railway=light_rail"
    2445                   de.href="http://wiki.openstreetmap.org/wiki/DE:Tag:railway=light_rail"
    2446                   ja.href="http://wiki.openstreetmap.org/wiki/JA:Tag:railway=light_rail" />
     2444            <link href="http://wiki.openstreetmap.org/wiki/Tag:narrow_gauge" />
    24472445            <key key="railway" value="narrow_gauge" />
    24482446            <optional>
  • 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.