| 1 | /* {0} on a node */
|
|---|
| 2 | node[oneway],
|
|---|
| 3 | node[bridge?],
|
|---|
| 4 | node[landuse],
|
|---|
| 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 | /* see ticket:#10125 */
|
|---|
| 14 | node[source:geometry] {
|
|---|
| 15 | throwWarning: tr("{0} on a node", "{0.key}");
|
|---|
| 16 | fixChangeKey: "source:geometry => source:position";
|
|---|
| 17 | }
|
|---|
| 18 |
|
|---|
| 19 | /* Building inside building (spatial test) */
|
|---|
| 20 | *[building][building!~/no|entrance/][any(tag("layer"),"0") = any(parent_tag("layer"),"0")] ∈
|
|---|
| 21 | *[building][building!~/no|entrance/] {
|
|---|
| 22 | throwWarning: tr("Building inside building");
|
|---|
| 23 | }
|
|---|
| 24 |
|
|---|
| 25 | /* Overlapping areas (spatial test) */
|
|---|
| 26 | area[natural =~ /^(water|wetland|coastline)$/], area[landuse=reservoir] {
|
|---|
| 27 | set water_area;
|
|---|
| 28 | }
|
|---|
| 29 |
|
|---|
| 30 | /* area:closed:areaStyle.water_area ⧉ area:closed:areaStyle.water_area -- does not work for now -- see ticket#10215 */
|
|---|
| 31 | area:closed:areaStyle[natural =~ /^(water|wetland|coastline)$/] ⧉ area:closed:areaStyle.water_area,
|
|---|
| 32 | area:closed:areaStyle[landuse=reservoir] ⧉ area:closed:areaStyle.water_area {
|
|---|
| 33 | throwWarning: tr("Overlapping Water Areas");
|
|---|
| 34 | }
|
|---|
| 35 |
|
|---|
| 36 | area:closed:areaStyle ⧉ area:closed:areaStyle {
|
|---|
| 37 | throwOther: tr("Overlapping Areas");
|
|---|
| 38 | }
|
|---|
| 39 |
|
|---|
| 40 | /* see ticket #9311 */
|
|---|
| 41 | node[amenity=parking]["capacity:disabled" !~ /^(yes|[0-9]+)$/] ∈ *[amenity=parking] {
|
|---|
| 42 | throwWarning: tr("{0} inside {1}", "amenity=parking", "amenity=parking");
|
|---|
| 43 | }
|
|---|
| 44 |
|
|---|
| 45 | /* see ticket #9556 */
|
|---|
| 46 | area:closed:areaStyle[tag("natural") = parent_tag("natural")] ⧉ area:closed:areaStyle[natural] {
|
|---|
| 47 | throwWarning: tr("Overlapping Identical Natural Areas");
|
|---|
| 48 | }
|
|---|
| 49 |
|
|---|
| 50 | area:closed:areaStyle[tag("landuse") = parent_tag("landuse")] ⧉ area:closed:areaStyle[landuse] {
|
|---|
| 51 | throwWarning: tr("Overlapping Identical Landuses");
|
|---|
| 52 | }
|
|---|
| 53 |
|
|---|
| 54 | /* see ticket:#9522 */
|
|---|
| 55 | node[tag("amenity") = parent_tag("amenity")] ∈ *[amenity][amenity != parking] {
|
|---|
| 56 | throwWarning: tr("{0} inside {1}", concat("amenity=", tag("amenity")), concat("amenity=", tag("amenity")));
|
|---|
| 57 | }
|
|---|
| 58 | node[tag("leisure") = parent_tag("leisure")] ∈ *[leisure] {
|
|---|
| 59 | throwWarning: tr("{0} inside {1}", concat("leisure=", tag("leisure")), concat("leisure=", tag("leisure")));
|
|---|
| 60 | }
|
|---|
| 61 | node[tag("tourism") = parent_tag("tourism")] ∈ *[tourism] {
|
|---|
| 62 | throwWarning: tr("{0} inside {1}", concat("tourism=", tag("tourism")), concat("tourism=", tag("tourism")));
|
|---|
| 63 | }
|
|---|
| 64 | node[tag("shop") = parent_tag("shop")] ∈ *[shop] {
|
|---|
| 65 | throwWarning: tr("{0} inside {1}", concat("shop=", tag("shop")), concat("shop=", tag("shop")));
|
|---|
| 66 | }
|
|---|
| 67 | node[tag("power") = parent_tag("power")] ∈ *[power] {
|
|---|
| 68 | throwWarning: tr("{0} inside {1}", concat("power=", tag("power")), concat("power=", tag("power")));
|
|---|
| 69 | }
|
|---|