Opened 7 years ago

Last modified 2 years ago

#11270 closed enhancement

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

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

Description (last modified by naoliv)

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 =~ /^(light_rail|miniature|narrow_gauge|preserved|rail|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 (4)

comment:1 Changed 7 years ago by Aun Johnsen <lists@…>

Cc: lists@… added

comment:2 Changed 7 years ago by naoliv

It seems that the beers scared people here

comment:3 Changed 7 years ago by Klumbumbus

Ticket #9300 has been marked as a duplicate of this ticket.

comment:4 Changed 7 years ago by naoliv

Description: modified (diff)
Note: See TracTickets for help on using tickets.