Changeset 18104 in josm for trunk/resources


Ignore:
Timestamp:
2021-08-01T21:01:37+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #18217 - Complain about area=yes on major roads (like highway=primary area=yes) (patch by skyper)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/validator/highway.mapcss

    r18022 r18104  
    196196  suggestAlternative: "junction=circular";
    197197}
     198
     199/* #18217 */
     200way[highway =~ /^((motorway|trunk|primary|secondary|tertiary)(_link)?|residential|unclassified)$/][area=yes],
     201relation[highway =~ /^((motorway|trunk|primary|secondary|tertiary)(_link)?|residential|unclassified)$/][type=multipolygon] {
     202  throwError: tr("Area with {0} above {1} is invalid", "highway=*", "highway=service");
     203  group: tr("suspicious tag combination");
     204  suggestAlternative: "area:highway=*";
     205  assertMatch:   "way highway=trunk area=yes";
     206  assertMatch:   "relation highway=trunk type=multipolygon";
     207  assertNoMatch: "way highway=service area=yes";
     208  assertNoMatch: "way highway=trunk";
     209}
Note: See TracChangeset for help on using the changeset viewer.