Opened 7 years ago

Last modified 2 years ago

#11270 closed enhancement

Test for missing/wrong railway=crossing|level_crossing — at Initial Version

Reported by: naoliv Owned by: team
Priority: normal Milestone: 16.02
Component: Core validator Version:
Keywords: Cc: lists@…

Description

We exchange this for 3 beers if accepted or for 1 beer if something needs to be adjusted (1 beer too if not accepted):

way[railway =~ /^(abandoned|construction|disused|funicular|light_rail|miniature|monorail|narrow_gauge|preserved|rail|subway|tram)$/] > node { set .is_in_railway }
way[highway =~ /^(bridleway|cycleway|footway|path|steps)$/] > node[railway != crossing].is_in_railway {
        throwWarning: tr("should have railway=crossing where pedestrians cross");
        fixAdd: "railway=crossing";
}

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 {
        throwWarning: tr("should have railway=level_crossing where road cross");
        fixAdd: "railway=level_crossing";
}

Change History (0)

Note: See TracTickets for help on using tickets.