Ignore:
Timestamp:
2022-08-13T18:39:30+02:00 (2 years ago)
Author:
Klumbumbus
Message:

see #21836 - Add some power/voltage validation rules:

  • voltage:primary/secondary/tertiary without transformer
  • voltage:primary/secondary/tertiary on a way
  • voltage:primary/secondary/tertiary not in correct number format (should be in volts with no units/delimiter/spaces)
  • don't warn about unknown numeric values of voltage:primary/secondary/tertiary
  • transformer together with voltage on nodes
  • voltage:secondary is lower than voltage:primary on transformer=generator
  • deprecate voltage-high and voltage-low in favor of voltage:primary/secondary
File:
1 edited

Legend:

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

    r18527 r18535  
    1111
    1212/* {0.key} without {1.key} (warning level) */
     13node[voltage:primary           ][!transformer],
     14node[voltage:secondary         ][!transformer],
     15node[voltage:tertiary          ][!transformer],
    1316way[junction                   ][!highway][junction!=yes][!area:highway],
    1417way[living_street              ][!highway],
     
    346349}
    347350
    348 /* {0.key} together with {1.key}, #18267, #17630, #17604 */
     351/* {0.key} together with {1.key}, #18267, #17630, #17604, #21836 */
     352node[transformer][voltage],
    349353node[marker][cover],
    350354node[marker][voltage],
     
    10611065  assertNoMatch: "relation piste:type=nordic piste:grooming=classic";
    10621066}
     1067
     1068/* #21836 */
     1069*[voltage:primary][voltage:secondary][transformer=generator][tag("voltage:secondary")<tag("voltage:primary")] {
     1070  throwWarning: tr("{0} is lower than {1} on {2}.", "{1.key}", "{0.key}", "{2.tag}");
     1071  group: tr("suspicious tag combination");
     1072}
Note: See TracChangeset for help on using the changeset viewer.