Changeset 11371 in josm


Ignore:
Timestamp:
2016-12-08T22:23:05+01:00 (5 months ago)
Author:
Klumbumbus
Message:

warn if lanes>2 but no lanes:forward and lanes:backward or oneway is present

File:
1 edited

Legend:

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

    r11346 r11371  
    475475  group: tr("missing tag");
    476476}
     477
     478way[highway][lanes][!lanes:forward][!lanes:backward][oneway!=yes][oneway!=-1][lanes>2],
     479way[highway][lanes][!lanes:backward][!lanes:forward][oneway!=yes][oneway!=-1][lanes>2] {
     480  throwWarning: tr("street with {0} > 2, but without {1} and {2} or {3}", "{1.key}", "{2.key}", "{3.key}", "{4.key}");
     481  group: tr("missing tag");
     482  assertNoMatch: "way highway=primary lanes=2";
     483  assertNoMatch: "way highway=primary lanes=3 lanes:backward=2";
     484  assertNoMatch: "way highway=primary lanes=3 oneway=-1";
     485  assertMatch: "way highway=primary lanes=3";
     486}
Note: See TracChangeset for help on using the changeset viewer.