- Timestamp:
- 2014-06-09T14:24:34+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/validator/power.mapcss
r6924 r7228 1 1 /* power related stuff (incomplete) */ 2 2 3 *[power =~ /^(line|minor_line|cable)$/][!voltage],4 3 *[substation][power!=substation], 5 4 *[transformer][!power] { 6 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}"); 7 12 assertMatch: "way power=line"; 8 13 assertNoMatch: "way power=line voltage=1"; 9 14 assertNoMatch: "way power=cable_distribution_cabinet"; 10 }11 12 *[power=substation][!substation],13 *[power=transformer][!transformer] {14 throwOther: tr("{0} without {1}", "{0.tag}", "{1.key}");15 15 assertMatch: "way power=substation"; 16 16 assertMatch: "way power=substation transformer=foobar";
Note:
See TracChangeset
for help on using the changeset viewer.