Changeset 11406 in josm for trunk


Ignore:
Timestamp:
2016-12-17T21:55:18+01:00 (7 years ago)
Author:
Klumbumbus
Message:

fix #14125 - remove warning if lanes>2 and lanes is an even number but no lanes:forward and lanes:backward or oneway is present, remove duplicate line

File:
1 edited

Legend:

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

    r11398 r11406  
    477477}
    478478
    479 way[highway][lanes][!lanes:forward][!lanes:backward][oneway!=yes][oneway!=-1][lanes>2],
    480 way[highway][lanes][!lanes:backward][!lanes:forward][oneway!=yes][oneway!=-1][lanes>2] {
    481   throwWarning: tr("street with {0} > 2, but without {1} and {2} or {3}", "{1.key}", "{2.key}", "{3.key}", "{4.key}");
     479/* #14125 */
     480way[highway][lanes][!lanes:forward][!lanes:backward][oneway!=yes][oneway!=-1][lanes>2][get(split(".", tag(lanes)/2), 1)=5] {
     481  throwWarning: tr("street with odd number of {0}, but without {1} and {2} or {3}", "{1.key}", "{2.key}", "{3.key}", "{4.key}");
    482482  group: tr("missing tag");
    483483  assertNoMatch: "way highway=primary lanes=2";
    484484  assertNoMatch: "way highway=primary lanes=3 lanes:backward=2";
    485485  assertNoMatch: "way highway=primary lanes=3 oneway=-1";
     486  assertNoMatch: "way highway=primary lanes=4";
    486487  assertMatch: "way highway=primary lanes=3";
    487488}
Note: See TracChangeset for help on using the changeset viewer.