Changeset 17050 in josm for trunk/resources


Ignore:
Timestamp:
2020-09-22T17:40:37+02:00 (4 years ago)
Author:
Klumbumbus
Message:

fix #19572 - Add more warnings about lanes and surface on suspicious objects (based on patch by Famlam)

File:
1 edited

Legend:

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

    r17046 r17050  
    99/* {0.key} without {1.key} (warning level) */
    1010way[junction                   ][!highway][junction!=yes][!area:highway],
    11 way[lanes                      ][!highway][leisure!=track][leisure!=swimming_pool],
    1211way[living_street              ][!highway],
    1312way[maintenance                ][!highway],
     
    7473  throwWarning: tr("{0} without {1}", "{0.key}", "{1.key}");
    7574  group: tr("missing tag");
    76   assertMatch: "way lanes=42";
    77   assertNoMatch: "way lanes=42 highway=unclassified";
    7875  assertMatch: "node source:addr:postcode=postman";
    7976}
     
    338335}
    339336
    340 /* only {0.key}, see #11104 #12422 #14950 */
     337/* only {0.key}, #11104, #12422, #14950, #19572 */
     338*[lanes][eval(number_of_tags()) = 1],
     339*[surface][eval(number_of_tags()) = 1],
    341340*[access][eval(number_of_tags()) = 1],
    342341*[area][eval(number_of_tags()) = 1]!.area_yes_autofix,
     
    345344*[lit][eval(number_of_tags()) = 1] {
    346345  throwWarning: tr("incomplete object: only {0}", "{0.key}");
     346  set only_one_tag;
    347347  group: tr("missing tag");
    348348}
     
    406406}
    407407
    408 /* {0} on suspicious object, #17255, #19650 */
     408/* {0} on suspicious object, #17255, #19650, #19572 */
     409node[lanes ][!barrier][!ford][highway!=mini_roundabout][!junction][leisure!~/^(bowling_alley|slipway|swimming_pool|track)$/][!traffic_calming]!.only_one_tag,
     410way[lanes  ][!barrier][!ford][!highway                ][!junction][leisure!~/^(bowling_alley|slipway|swimming_pool|track)$/][!traffic_calming]!.only_one_tag,
    409411*[tunnel   ][!highway][!railway][!waterway][!piste:type][public_transport!=platform][route!=ferry][man_made!=pipeline][man_made!=goods_conveyor][man_made!=wildlife_crossing][man_made!=tunnel],
    410412*[bridge   ][!highway][!railway][!waterway][!piste:type][public_transport!=platform][route!=ferry][man_made!=pipeline][man_made!=goods_conveyor][man_made!=wildlife_crossing][man_made!=bridge][building!=bridge],
Note: See TracChangeset for help on using the changeset viewer.