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