Ticket #19996: 19996_v1.patch

File 19996_v1.patch, 1.1 KB (added by reichg, 3 years ago)

Here is the patch that removes the warning on features with highway=<anything less than tertiary> and motor_vehicles=yes.

  • resources/data/validator/unnecessary.mapcss

     
    11*[access][highway=proposed],
    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)$/],
     2*[motor_vehicle?][!vehicle][!access][bicycle_road!=yes][highway =~ /^(motorway|motorway_link|trunk|trunk_link|primary|primary_link|secondary|secondary_link|tertiary|tertiary_link)$/],
    33*[bridge=no],
    44*[building=no],
    55*[elevation="0"],
     
    1111  assertMatch: "way layer=0";
    1212  assertMatch: "way bridge=no";
    1313  assertMatch: "way highway=proposed access=no";
     14  assertNoMatch: "way highway=residential motor_vehicles=yes"
    1415  assertMatch: "way highway=motorway motor_vehicle=yes";
    1516  assertNoMatch: "way highway=motorway access=no motor_vehicle=yes";
    1617}