Changeset 14918 in josm


Ignore:
Timestamp:
2019-03-23T15:28:23+01:00 (9 months ago)
Author:
Don-vip
Message:

fix #9257 - detect highway=footway, highway=pedestrian with foot=yes (and highway=cycleway with bicycle=yes) (PATCH by mkoniecz)

File:
1 edited

Legend:

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

    r14911 r14918  
    11*[access][highway=proposed],
    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)$/],
     2*[motor_vehicle?][!vehicle][!access][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],
     
    1212  assertMatch: "way bridge=no";
    1313  assertMatch: "way highway=proposed access=no";
     14  assertMatch: "way highway=motorway motor_vehicle=yes";
     15  assertNoMatch: "way highway=motorway access=no motor_vehicle=yes";
    1416}
    1517
     
    3638
    3739/* #9257, #17482 */
    38 way[foot =~ /^(yes|designated)$/][highway =~ /^(footway|pedestrian)$/],
    39 way[bicycle =~ /^(yes|designated)$/][highway=cycleway],
     40way[foot =~ /^(yes|designated)$/][!access][highway =~ /^(footway|pedestrian)$/],
     41way[bicycle =~ /^(yes|designated)$/][!vehicle][!access][highway=cycleway],
    4042*[building:ruian:type=2][building=farm_auxiliary],
    4143*[building:ruian:type=7][building=house],
     
    4850  group: tr("unnecessary tag");
    4951  fixRemove: "{0.key}";
     52  assertMatch: "way highway=pedestrian foot=designated";
     53  assertNoMatch: "way highway=pedestrian access=no foot=designated";
    5054}
    5155
Note: See TracChangeset for help on using the changeset viewer.