[6550] | 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";
|
---|
[6611] | 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");
|
---|
[6613] | 17 | }
|
---|
| 18 |
|
---|
| 19 | /* Overlapping areas (spatial test) */
|
---|
| 20 | area[natural =~ /^(water|wetland|coastline)$/], area[landuse=reservoir] {
|
---|
| 21 | set water_area;
|
---|
| 22 | }
|
---|
| 23 |
|
---|
[6630] | 24 | area:closed:areaStyle.water_area ⧉ area:closed:areaStyle.water_area {
|
---|
[6613] | 25 | throwWarning: tr("Overlapping Water Areas");
|
---|
| 26 | }
|
---|
| 27 |
|
---|
[6630] | 28 | area:closed:areaStyle ⧉ area:closed:areaStyle {
|
---|
[6613] | 29 | throwOther: tr("Overlapping Areas");
|
---|
| 30 | }
|
---|
[6614] | 31 |
|
---|
| 32 | /* see ticket #9311 */
|
---|
[6719] | 33 | node[amenity=parking][!"capacity:disabled"] ∈ *[amenity=parking],
|
---|
[6628] | 34 | node[amenity=parking]["capacity:disabled" !~ /^(yes|[0-9]+)$/] ∈ *[amenity=parking] {
|
---|
[6614] | 35 | throwWarning: tr("{0} inside {1}", "amenity=parking", "amenity=parking");
|
---|
[6680] | 36 | }
|
---|
| 37 |
|
---|
| 38 | /* see ticket #9556 */
|
---|
| 39 | area:closed:areaStyle[tag("natural") = parent_tag("natural")] ⧉ area:closed:areaStyle[natural] {
|
---|
| 40 | throwWarning: tr("Overlapping Identical Natural Areas");
|
---|
| 41 | }
|
---|
| 42 |
|
---|
| 43 | area:closed:areaStyle[tag("landuse") = parent_tag("landuse")] ⧉ area:closed:areaStyle[landuse] {
|
---|
| 44 | throwWarning: tr("Overlapping Identical Landuses");
|
---|
[6719] | 45 | }
|
---|
| 46 |
|
---|
| 47 | /* see ticket:#9522 */
|
---|
| 48 | node[tag("amenity") = parent_tag("amenity")] ∈ *[amenity][amenity != parking] {
|
---|
| 49 | throwWarning: tr("{0} inside {1}", concat("amenity=", tag("amenity")), concat("amenity=", tag("amenity")));
|
---|
| 50 | }
|
---|
| 51 | node[tag("leisure") = parent_tag("leisure")] ∈ *[leisure] {
|
---|
| 52 | throwWarning: tr("{0} inside {1}", concat("leisure=", tag("leisure")), concat("leisure=", tag("leisure")));
|
---|
| 53 | }
|
---|
| 54 | node[tag("tourism") = parent_tag("tourism")] ∈ *[tourism] {
|
---|
| 55 | throwWarning: tr("{0} inside {1}", concat("tourism=", tag("tourism")), concat("tourism=", tag("tourism")));
|
---|
| 56 | }
|
---|
| 57 | node[tag("shop") = parent_tag("shop")] ∈ *[shop] {
|
---|
| 58 | throwWarning: tr("{0} inside {1}", concat("shop=", tag("shop")), concat("shop=", tag("shop")));
|
---|
[6614] | 59 | }
|
---|