Changeset 17957 in josm for trunk/resources/data/validator
- Timestamp:
- 2021-07-07T23:04:44+02:00 (3 years ago)
- Location:
- trunk/resources/data/validator
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/resources/data/validator/combinations.mapcss
r17954 r17957 345 345 } 346 346 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 */ 349 node[access][eval(number_of_tags()) = 1], 350 way[access][eval(number_of_tags()) = 1], 351 node[area][eval(number_of_tags()) = 1]!.area_yes_autofix, 352 way[area][eval(number_of_tags()) = 1]!.area_yes_autofix, 353 node[lanes][eval(number_of_tags()) = 1], 354 way[lanes][eval(number_of_tags()) = 1], 355 node[layer][eval(number_of_tags()) = 1], 356 way[layer][eval(number_of_tags()) = 1], 357 way[level][eval(number_of_tags()) = 1], /* nodes might be valid, e.g. start and end nodes of steps */ 358 node[lit][eval(number_of_tags()) = 1], 359 way[lit][eval(number_of_tags()) = 1], 360 node[name][eval(number_of_tags()) = 1], 361 way[name][eval(number_of_tags()) = 1], 362 node[ref][eval(number_of_tags()) = 1], 363 way[ref][eval(number_of_tags()) = 1], 364 node[surface][eval(number_of_tags()) = 1], 365 way[surface][eval(number_of_tags()) = 1] { 355 366 throwWarning: tr("incomplete object: only {0}", "{0.key}"); 356 367 set only_one_tag; … … 358 369 } 359 370 /* only {0.key} and {1.key} */ 360 *[name][area][eval(number_of_tags()) = 2], 361 *[name][ref][eval(number_of_tags()) = 2] { 371 node[name][area][eval(number_of_tags()) = 2], 372 way[name][area][eval(number_of_tags()) = 2], 373 node[name][ref][eval(number_of_tags()) = 2], 374 way[name][ref][eval(number_of_tags()) = 2] { 362 375 throwWarning: tr("incomplete object: only {0} and {1}", "{0.key}", "{1.key}"); 363 376 group: tr("missing tag"); 364 377 } 365 378 /* only {0.tag}, #15269 */ 366 *[tourism=attraction][eval(number_of_tags()) = 1] { 379 node[tourism=attraction][eval(number_of_tags()) = 1], 380 way[tourism=attraction][eval(number_of_tags()) = 1] { 367 381 throwWarning: tr("incomplete object: only {0}", "{0.tag}"); 368 382 group: tr("missing tag"); 369 383 } 370 384 /* only {0.key} and {1.tag} */ 371 *[name][tourism=attraction][eval(number_of_tags()) = 2] { 385 node[name][tourism=attraction][eval(number_of_tags()) = 2], 386 way[name][tourism=attraction][eval(number_of_tags()) = 2] { 372 387 throwWarning: tr("incomplete object: only {0} and {1}", "{0.key}", "{1.tag}"); 373 388 group: tr("missing tag"); -
trunk/resources/data/validator/geometry.mapcss
r17933 r17957 138 138 way:closed[power=line] { 139 139 throwWarning: tr("{0} on a closed way. Should be used on an unclosed way.", "{1.tag}"); 140 } 141 142 /* #20902 */ 143 relation[area?] { 144 throwWarning: tr("{0} on a relation", "{0.key}"); 145 fixRemove: "{0.key}"; 140 146 } 141 147 -
trunk/resources/data/validator/unnecessary.mapcss
r17947 r17957 20 20 } 21 21 22 area:closed[amenity ][area?][!highway],23 area:closed[building][area?],24 area:closed[landuse ][area?][!highway],25 area:closed[leisure ][area?][!highway][leisure!=track][leisure!=slipway],26 area:closed[natural ][area?],27 area:closed[shop ][area?] {22 way:closed[amenity ][area?][!highway], 23 way:closed[building][area?], 24 way:closed[landuse ][area?][!highway], 25 way:closed[leisure ][area?][!highway][leisure!=track][leisure!=slipway], 26 way:closed[natural ][area?], 27 way:closed[shop ][area?] { 28 28 throwWarning: tr("{0} is unnecessary for {1}", "{2.tag}", "{1.key}"); 29 29 group: tr("unnecessary tag");
Note:
See TracChangeset
for help on using the changeset viewer.