- Timestamp:
- 2016-09-24T19:25:18+02:00 (8 years ago)
- Location:
- trunk/data/validator
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/validator/deprecated.mapcss
r11025 r11049 505 505 set samecolor; 506 506 fixRemove: "color"; 507 assertMatch: "way color=red colour=red"; 508 assertNoMatch: "way color=red colour=green"; 507 509 } 508 510 *[color][colour]!.samecolor { 509 511 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}"); 512 assertNoMatch: "way color=red colour=red"; 513 assertMatch: "way color=red colour=green"; 510 514 } 511 515 *[/:color/]{ 512 516 throwWarning: tr("{0} is deprecated", "{0.key}"); 513 517 suggestAlternative: ":colour"; 518 assertNoMatch: "way color=red"; 519 assertMatch: "way roof:color=grey"; 514 520 } 515 521 *[/color:/] { … … 529 535 relation[/^..$/][!to] { 530 536 throwWarning: tr("uncommon short key"); 537 assertNoMatch: "relation to=Berlin"; 538 assertMatch: "relation fo=bar"; 539 assertMatch: "way to=bar"; 540 assertMatch: "node fo=bar"; 541 assertMatch: "node f=b"; 531 542 } 532 543 -
trunk/data/validator/geometry.mapcss
r11005 r11049 73 73 } 74 74 75 /* {0} on a node, should be a relation; see #10252, #10769 */75 /* {0} on a node, should be a relation; Error level; see #10252, #10769 */ 76 76 node[route], 77 77 node[restriction] { 78 throw Warning: tr("{0}=* on a node. Should be used in a relation", "{0.key}");78 throwError: tr("{0}=* on a node. Should be used in a relation", "{0.key}"); 79 79 } 80 80 … … 221 221 } 222 222 223 /* see #11127*/223 /* #11127 */ 224 224 way[railway][bridge] > node, 225 225 way[highway][bridge] > node { … … 230 230 } 231 231 232 /* see #11128*/232 /* #11128 */ 233 233 way[highway] > node[tourism=information][information=guidepost] { 234 234 set guidepost; … … 262 262 } 263 263 264 /* 12561 - building larger than Aalsmeer Flower Auction*/265 area:closed[building][ eval(areasize()) > 500000] {266 throw Warning: tr("Too large building");264 /* #12561 - building larger than Aalsmeer Flower Auction (518000) and Tesla factory (510000) */ 265 area:closed[building][building!=no][eval(areasize()) > 520000] { 266 throwError: tr("Too large building"); 267 267 } 268 268 -
trunk/data/validator/highway.mapcss
r9839 r11049 17 17 } 18 18 19 node[highway =~ /motorway|trunk|primary|secondary|tertiary|unclassified|residential|service|living_street|pedestrian|track|path|footway|cycleway|bus_guideway|bridleway/] [highway!=motorway_junction][highway!=services]{19 node[highway =~ /motorway|trunk|primary|secondary|tertiary|unclassified|residential|service|living_street|pedestrian|track|path|footway|cycleway|bus_guideway|bridleway/] { 20 20 throwWarning: tr("wrong highway tag on a node"); 21 21 assertMatch: "node highway=primary"; … … 109 109 way[footway][footway!=sidewalk][footway!=crossing]!.footway_to_sidewalk { /* do not trigger this rule if already one of the two previous rules applied */ 110 110 throwWarning: tr("Value of ''{0}'' should either be ''{1}'' or ''{2}''. For sidewalks use ''{3}'' instead.", "{0.key}", "{1.value}", "{2.value}", "sidewalk=left|right|both|no"); 111 assertNoMatch: "way footway=left"; 112 assertNoMatch: "way footway=none"; 113 assertMatch: "way footway=bar"; 111 114 } 112 115
Note:
See TracChangeset
for help on using the changeset viewer.