Ignore:
Timestamp:
2026-01-16T11:11:30+01:00 (4 days ago)
Author:
stoecker
Message:

improve Power circuits relations presets and validation, fix #24456 - patch by francois.lacombe

File:
1 edited

Legend:

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

    r19440 r19467  
    307307node[power=transformer][voltage],
    308308node[transformer=distribution][voltage][power=pole],
     309relation[power=circuit][wires],
     310relation[power=line_section][wires],
    309311*[amenity=vending_machine][shop],
    310312*[noname?][name],
     
    11381140  assertNoMatch: "way highway=primary oneway=yes bicycle:lanes=no|designated|yes cycleway:lanes=|lane|no";
    11391141}
     1142
     1143/* Prevent redundancy between relation and members, see #24456, #24457 */
     1144relation[power=circuit] > way[power=line][frequency],
     1145relation[power=circuit] > way[power=minor_line][frequency],
     1146relation[power=circuit] > way[power=cable][frequency] {
     1147  throwWarning: tr("Frequency tag should be on the circuit relation only, not on the power segment");
     1148  group: tr("redundant tagging");
     1149}
     1150relation[power=circuit] > relation[power=line_section][frequency] { 
     1151  throwWarning: tr("Frequency tag should be on the circuit relation only, not on the power section");
     1152  group: tr("redundant tagging");
     1153}
     1154
     1155/* Invalid topology with power circuit relation, see #24456 */
     1156relation[power=circuit][topology][topology!~/^(linear|branched)$/] {
     1157       throwError: tr("power=circuit relations should have a topology tag with value linear or branched");
     1158       assertMatch: "relation type=power power=circuit topology=branch";
     1159       assertNoMatch: "relation type=power power=circuit topology=branched";
Note: See TracChangeset for help on using the changeset viewer.