Ignore:
Timestamp:
2021-07-07T21:45:42+02:00 (3 years ago)
Author:
Klumbumbus
Message:

fix #21068 - Add validator rules for roof:height (patch by skyper)

File:
1 edited

Legend:

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

    r17923 r17953  
    345345}
    346346
    347 /* only {0.key}, #11104, #12422, #14950, #19572 */
    348 *[lanes][eval(number_of_tags()) = 1],
    349 *[surface][eval(number_of_tags()) = 1],
    350 *[access][eval(number_of_tags()) = 1],
    351 *[area][eval(number_of_tags()) = 1]!.area_yes_autofix,
    352 *[name][eval(number_of_tags()) = 1],
    353 *[ref][eval(number_of_tags()) = 1],
    354 *[lit][eval(number_of_tags()) = 1] {
     347/* only {0.key}, #11104, #12422, #14950, #19572, #20902 */
     348/* relations excluded as there is a test for missing type=* plus several other test depending on the type exist */
     349node[access][eval(number_of_tags()) = 1],
     350way[access][eval(number_of_tags()) = 1],
     351node[area][eval(number_of_tags()) = 1]!.area_yes_autofix,
     352way[area][eval(number_of_tags()) = 1]!.area_yes_autofix,
     353node[lanes][eval(number_of_tags()) = 1],
     354way[lanes][eval(number_of_tags()) = 1],
     355node[layer][eval(number_of_tags()) = 1],
     356way[layer][eval(number_of_tags()) = 1],
     357way[level][eval(number_of_tags()) = 1], /* nodes might be valid, e.g. start and end nodes of steps */
     358node[lit][eval(number_of_tags()) = 1],
     359way[lit][eval(number_of_tags()) = 1],
     360node[name][eval(number_of_tags()) = 1],
     361way[name][eval(number_of_tags()) = 1],
     362node[ref][eval(number_of_tags()) = 1],
     363way[ref][eval(number_of_tags()) = 1],
     364node[surface][eval(number_of_tags()) = 1],
     365way[surface][eval(number_of_tags()) = 1] {
    355366  throwWarning: tr("incomplete object: only {0}", "{0.key}");
    356367  set only_one_tag;
     
    364375}
    365376/* only {0.tag}, #15269 */
    366 *[tourism=attraction][eval(number_of_tags()) = 1] {
     377node[tourism=attraction][eval(number_of_tags()) = 1],
     378way[tourism=attraction][eval(number_of_tags()) = 1] {
    367379  throwWarning: tr("incomplete object: only {0}", "{0.tag}");
    368380  group: tr("missing tag");
Note: See TracChangeset for help on using the changeset viewer.