Ticket #9819: 9819_highway_water_railway_v2.patch

File 9819_highway_water_railway_v2.patch, 1.3 KB (added by reichg, 5 years ago)

added discussed changes

  • resources/data/validator/combinations.mapcss

     
    66  set unpaved_surface;
    77}
    88
     9way!:closed[highway][layer][layer!=0][!bridge][!tunnel][!covered][highway!~/steps|elevator/],
     10way!:closed[railway][layer][layer!=0][!bridge][!tunnel][!covered],
     11way!:closed[waterway][layer][layer!=0][!bridge][!tunnel][!covered] {
     12  throwWarning: tr("inspect to confirm a {1} tag is necessary on this {0}. If so, add either {2}, {3}, {4} or any other tags complimentary to {5}", "{2.key}", "{3.key}", "{4.key}=*", "{5.key}=*", "{6.key}=*", "{3.key}=*");
     13  group: tr("suspicious tag combination");
     14  assertMatch: "way highway=tertiary layer=2";
     15  assertMatch: "way waterway=stream layer=-1";
     16  assertMatch: "way railway=rail layer=2";
     17  assertNoMatch: "way highway=tertiary layer=2 bridge=yes";
     18  assertNoMatch: "way waterway=stream layer=-1 tunnel=yes";
     19  assertNoMatch: "way railway=rail layer=2 bridge=yes";
     20}
     21
    922/* {0.key} without {1.key} (warning level) */
    1023way[junction                   ][!highway][junction!=yes][!area:highway],
    1124way[living_street              ][!highway],