Line | |
---|
1 | /* power related stuff (incomplete) */ |
---|
2 | |
---|
3 | *[substation][power!=substation], |
---|
4 | *[transformer][!power] { |
---|
5 | throwWarning: tr("{0} without {1}", "{0.key}", "{1.tag}"); |
---|
6 | } |
---|
7 | |
---|
8 | *[power =~ /^(line|minor_line|cable)$/][!voltage], |
---|
9 | *[power=substation][!substation], |
---|
10 | *[power=transformer][!transformer] { |
---|
11 | throwOther: tr("{0} without {1}", "{0.tag}", "{1.key}"); |
---|
12 | assertMatch: "way power=line"; |
---|
13 | assertNoMatch: "way power=line voltage=1"; |
---|
14 | assertNoMatch: "way power=cable_distribution_cabinet"; |
---|
15 | assertMatch: "way power=substation"; |
---|
16 | assertMatch: "way power=substation transformer=foobar"; |
---|
17 | assertNoMatch: "way power=substation substation=foobar"; |
---|
18 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.