Ticket #20742: 20742_v2.patch

File 20742_v2.patch, 1.3 KB (added by reichg, 5 years ago)

restricts barrier test to major_roads (teriary_link and above).

  • resources/data/validator/combinations.mapcss

     
    66  set unpaved_surface;
    77}
    88
     9way[highway=~/^(motorway|motorway_link|trunk|trunk_link|primary|primary_link|secondary|secondary_link|tertiary|tertiary_link)$/] {
     10  set major_roads;
     11}
     12
    913/* {0.key} without {1.key} (warning level) */
    1014way[junction                   ][!highway][junction!=yes][!area:highway],
    1115way[living_street              ][!highway],
     
    109113  group: tr("missing tag");
    110114}
    111115
     116/* #20742 - No warning about barrier with inappropriate access tags on highway */
     117 way[!access][!vehicle].major_roads > node[barrier][barrier!=entrance][!access][!motor_vehicle] {
     118    throwWarning: tr("{0} tag on node missing complimentary tags such as {1}, {2}, or {3}.", "barrier", "access", "motor_vehicle", "vehicle");
     119    group: tr("suspicious barrier tags");
     120    assertMatch: "node barrier=gate way highway=tertiary";
     121    assertNoMatch: "node barrier=entrance way highway=tertiary";
     122}
     123
    112124/* {0.key} without {1.tag} or {2.tag} */
    113125*[bridge:movable               ][bridge!=movable][man_made!=bridge],
    114126*[substation                   ][power!=substation][pipeline!=substation],