Ignore:
Timestamp:
2022-08-13T18:39:30+02:00 (4 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/deprecated.mapcss

    r18524 r18535  
    23822382}
    23832383
     2384/* #21836 */
     2385*[voltage-high],
     2386*[voltage-low] {
     2387  throwWarning: tr("{0} is deprecated", "{0.key}");
     2388  suggestAlternative: "voltage:primary";
     2389  suggestAlternative: "voltage:secondary";
     2390  group: tr("deprecated tagging");
     2391}
     2392
    23842393/* When tags are deprecated they should be added to ignoretags.cfg too. */
Note: See TracChangeset for help on using the changeset viewer.