|
Last change
on this file since 6618 was 6614, checked in by simon04, 12 years ago |
|
fix #9311 - Add amenity=parking inside amenity=parking validation (based on MapCSS)
|
|
File size:
930 bytes
|
| Line | |
|---|
| 1 | /* {0} on a node */
|
|---|
| 2 | node[oneway],
|
|---|
| 3 | node[bridge?],
|
|---|
| 4 | node[source:geometry],
|
|---|
| 5 | node[source:outline] {
|
|---|
| 6 | throwWarning: tr("{0} on a node", "{0.key}");
|
|---|
| 7 | assertMatch: "node oneway=-1";
|
|---|
| 8 | assertNoMatch: "way oneway=-1";
|
|---|
| 9 | assertMatch: "node bridge=yes";
|
|---|
| 10 | assertNoMatch: "node bridge=13";
|
|---|
| 11 | }
|
|---|
| 12 |
|
|---|
| 13 | /* Building inside building (spatial test) */
|
|---|
| 14 | *[building!~/no|entrance/][coalesce(tag("layer"),"0") = coalesce(parent_tag("layer"),"0")] ∈
|
|---|
| 15 | *[building!~/no|entrance/] {
|
|---|
| 16 | throwWarning: tr("Building inside building");
|
|---|
| 17 | }
|
|---|
| 18 |
|
|---|
| 19 | /* Overlapping areas (spatial test) */
|
|---|
| 20 | area[natural =~ /^(water|wetland|coastline)$/], area[landuse=reservoir] {
|
|---|
| 21 | set water_area;
|
|---|
| 22 | }
|
|---|
| 23 |
|
|---|
| 24 | area.water_area ⧉ area.water_area {
|
|---|
| 25 | throwWarning: tr("Overlapping Water Areas");
|
|---|
| 26 | }
|
|---|
| 27 |
|
|---|
| 28 | area ⧉ area {
|
|---|
| 29 | throwOther: tr("Overlapping Areas");
|
|---|
| 30 | }
|
|---|
| 31 |
|
|---|
| 32 | /* see ticket #9311 */
|
|---|
| 33 | node[amenity=parking] ∈ *[amenity=parking] {
|
|---|
| 34 | throwWarning: tr("{0} inside {1}", "amenity=parking", "amenity=parking");
|
|---|
| 35 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.