Changeset 13005 in josm


Ignore:
Timestamp:
2017-10-16T20:49:43+02:00 (2 months ago)
Author:
Klumbumbus
Message:

fix #15439 - fine tune some validator rules (patch by nyurik)

Location:
trunk/data/validator
Files:
3 edited

Legend:

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

    r12895 r13005  
    8686}
    8787
    88 /* footway, see #10851, #10976 */
    89 way[footway=left][/footway:/],
    90 way[footway=right][/footway:/],
    91 way[footway=both][/footway:/],
    92 way[footway=no][/footway:/] {
     88/* footway, see #10851, #10976, #15439 */
     89way[footway=left][/^footway:/],
     90way[footway=right][/^footway:/],
     91way[footway=both][/^footway:/],
     92way[footway=no][/^footway:/] {
    9393  throwWarning: tr("{0} is deprecated, use {1} instead. Also check similar tags like {2}", "{0.tag}", "sidewalk", "{1.key}");
    9494  group: tr("deprecated tagging");
     
    127127}
    128128
    129 /* #11270, #9297 */
     129/* #11270, #9297, #15439 */
    130130way[railway =~ /^(light_rail|miniature|narrow_gauge|preserved|rail)$/][!highway] > node { set .is_in_railway }
    131131way[highway =~ /^(bridleway|cycleway|footway|path|steps)$/] > node { set .is_in_minor_road }
    132 way[highway =~ /^(bus_guideway|living_street|motorway|pedestrian|primary|raceway|residential|road|secondary|service|tertiary|track|trunk|unclassified)/] > node { set .is_in_major_road }
     132way[highway =~ /^(bus_guideway|living_street|motorway|motorway_link|pedestrian|primary|primary_link|raceway|residential|road|secondary|secondary_link|service|tertiary|tertiary_link|track|trunk|trunk_link|unclassified)$/] > node { set .is_in_major_road }
    133133node[railway!=crossing].is_in_railway.is_in_minor_road!.is_in_major_road {
    134134  throwWarning: tr("pedestrian railway crossing without {0}", "{0.tag}");
  • trunk/data/validator/numeric.mapcss

    r12493 r13005  
    77}
    88
    9 *[layer =~ /\+.*/] {
     9*[layer =~ /^\+\d/] {
    1010  throwWarning: tr("layer tag with + sign");
    1111  fixAdd: concat("layer=", replace(tag("layer"), "+", ""));
     
    1313  assertNoMatch: "node layer=1";
    1414  assertNoMatch: "node layer=-1";
     15  assertNoMatch: "node layer=+foo";
    1516}
    1617
  • trunk/data/validator/unnecessary.mapcss

    r11476 r13005  
    11*[access][highway=proposed],
    2 *[motor_vehicle?][vehicle!=no][access!=no][bicycle_road!=yes][highway =~ /motorway|trunk|primary|secondary|tertiary|unclassified|residential|service|living_street/],
     2*[motor_vehicle?][vehicle!=no][access!=no][bicycle_road!=yes][highway =~ /^(motorway|motorway_link|trunk|trunk_link|primary|primary_link|secondary|secondary_link|tertiary|tertiary_link|unclassified|residential|service|living_street)$/],
    33*[bridge=no],
    44*[building=no],
Note: See TracChangeset for help on using the changeset viewer.