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/numeric.mapcss

    r18385 r18535  
    373373}
    374374
    375 way[voltage][voltage =~ /(.*[A-Za-z].*)|.*,.*|.*( ).*/] {
     375way[voltage][voltage =~ /(.*[A-Za-z].*)|.*,.*|.*( ).*/],
     376way[voltage:primary][voltage:primary =~ /(.*[A-Za-z].*)|.*,.*|.*( ).*/],
     377way[voltage:secondary][voltage:secondary =~ /(.*[A-Za-z].*)|.*,.*|.*( ).*/],
     378way[voltage:tertiary][voltage:tertiary =~ /(.*[A-Za-z].*)|.*,.*|.*( ).*/] {
    376379  throwWarning: tr("voltage should be in volts with no units/delimiter/spaces");
    377380  assertMatch: "way voltage=medium";
Note: See TracChangeset for help on using the changeset viewer.