Last change
on this file since 6550 was 6548, checked in by simon04, 11 years ago |
see #9414 - MapCSS-based tagchecker: migrate remaining tagchecks
All former tagchecker.cfg checks are now located in data/validator/*mapcss :-)
|
File size:
576 bytes
|
Line | |
---|
1 | /* power related stuff (incomplete) */
|
---|
2 |
|
---|
3 | *[power =~ /line|minor_line|cable/][!voltage],
|
---|
4 | *[substation][power!=substation],
|
---|
5 | *[transformer][!power] {
|
---|
6 | throwWarning: tr("{0} without {1}", "{0.key}", "{1.tag}");
|
---|
7 | assertMatch: "way power=line";
|
---|
8 | assertNoMatch: "way power=line voltage=1";
|
---|
9 | }
|
---|
10 |
|
---|
11 | *[power=substation][!substation],
|
---|
12 | *[power=transformer][!transformer] {
|
---|
13 | throwOther: tr("{0} without {1}", "{0.tag}", "{1.key}");
|
---|
14 | assertMatch: "way power=substation";
|
---|
15 | assertMatch: "way power=substation transformer=foobar";
|
---|
16 | assertNoMatch: "way power=substation substation=foobar";
|
---|
17 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.