[7735] | 1 | /* {0} on a node, should be a way */
|
---|
[6550] | 2 | node[oneway],
|
---|
| 3 | node[bridge?],
|
---|
[7707] | 4 | node[sidewalk],
|
---|
[7737] | 5 | node[waterway=river],
|
---|
| 6 | node[waterway=riverbank],
|
---|
| 7 | node[waterway=canal],
|
---|
| 8 | node[waterway=wadi],
|
---|
| 9 | node[waterway=stream],
|
---|
| 10 | node[waterway=ditch],
|
---|
[7735] | 11 | node[natural=coastline],
|
---|
| 12 | node[natural=ridge],
|
---|
| 13 | node[natural=tree_row] {
|
---|
| 14 | throwWarning: tr("{0} on a node. Should be used on a way.", "{0.key}");
|
---|
[6550] | 15 | assertMatch: "node oneway=-1";
|
---|
| 16 | assertNoMatch: "way oneway=-1";
|
---|
| 17 | assertMatch: "node bridge=yes";
|
---|
| 18 | assertNoMatch: "node bridge=13";
|
---|
[6611] | 19 | }
|
---|
| 20 |
|
---|
[7735] | 21 | /* {0} on a node, should be an area; see ticket #10679 */
|
---|
| 22 | node[landuse],
|
---|
| 23 | node[natural=scree],
|
---|
| 24 | node[natural=scrub],
|
---|
| 25 | node[natural=fell],
|
---|
| 26 | node[natural=heath],
|
---|
| 27 | node[natural=wood],
|
---|
| 28 | node[natural=grassland],
|
---|
| 29 | node[natural=wetland],
|
---|
| 30 | node[natural=water],
|
---|
| 31 | node[natural=mud],
|
---|
| 32 | node[natural=beach],
|
---|
| 33 | node[natural=sand],
|
---|
| 34 | node[natural=wood],
|
---|
| 35 | node[natural=bare_rock],
|
---|
| 36 | node[waterway=riverbank],
|
---|
| 37 | node[source:outline] {
|
---|
| 38 | throwWarning: tr("{0} on a node. Should be drawn as an area.", "{0.tag}");
|
---|
[7468] | 39 | }
|
---|
| 40 |
|
---|
[7744] | 41 | /* {0} on a node, should be a relation; see #10252, #10769 */
|
---|
| 42 | node[route],
|
---|
| 43 | node[restriction] {
|
---|
| 44 | throwWarning: tr("{0}=* on a node. Should be used in a relation", "{0.key}");
|
---|
| 45 | }
|
---|
| 46 |
|
---|
| 47 | /* {0} on a way, should be a relation; see #10252 */
|
---|
| 48 | way[route=bus] {
|
---|
| 49 | throwWarning: tr("{0} on a way. Should be used in a relation", "{0.tag}");
|
---|
| 50 | }
|
---|
| 51 |
|
---|
[7279] | 52 | /* see ticket:#10125 */
|
---|
| 53 | node[source:geometry] {
|
---|
| 54 | throwWarning: tr("{0} on a node", "{0.key}");
|
---|
| 55 | fixChangeKey: "source:geometry => source:position";
|
---|
| 56 | }
|
---|
| 57 |
|
---|
[6611] | 58 | /* Building inside building (spatial test) */
|
---|
[7164] | 59 | *[building][building!~/no|entrance/][any(tag("layer"),"0") = any(parent_tag("layer"),"0")] ∈
|
---|
[6861] | 60 | *[building][building!~/no|entrance/] {
|
---|
[6611] | 61 | throwWarning: tr("Building inside building");
|
---|
[6613] | 62 | }
|
---|
| 63 |
|
---|
| 64 | /* Overlapping areas (spatial test) */
|
---|
| 65 | area[natural =~ /^(water|wetland|coastline)$/], area[landuse=reservoir] {
|
---|
| 66 | set water_area;
|
---|
| 67 | }
|
---|
| 68 |
|
---|
[7280] | 69 | /* area:closed:areaStyle.water_area ⧉ area:closed:areaStyle.water_area -- does not work for now -- see ticket#10215 */
|
---|
| 70 | area:closed:areaStyle[natural =~ /^(water|wetland|coastline)$/] ⧉ area:closed:areaStyle.water_area,
|
---|
| 71 | area:closed:areaStyle[landuse=reservoir] ⧉ area:closed:areaStyle.water_area {
|
---|
[6613] | 72 | throwWarning: tr("Overlapping Water Areas");
|
---|
| 73 | }
|
---|
| 74 |
|
---|
[6630] | 75 | area:closed:areaStyle ⧉ area:closed:areaStyle {
|
---|
[6613] | 76 | throwOther: tr("Overlapping Areas");
|
---|
| 77 | }
|
---|
[6614] | 78 |
|
---|
| 79 | /* see ticket #9311 */
|
---|
[6628] | 80 | node[amenity=parking]["capacity:disabled" !~ /^(yes|[0-9]+)$/] ∈ *[amenity=parking] {
|
---|
[6614] | 81 | throwWarning: tr("{0} inside {1}", "amenity=parking", "amenity=parking");
|
---|
[6680] | 82 | }
|
---|
| 83 |
|
---|
| 84 | /* see ticket #9556 */
|
---|
| 85 | area:closed:areaStyle[tag("natural") = parent_tag("natural")] ⧉ area:closed:areaStyle[natural] {
|
---|
| 86 | throwWarning: tr("Overlapping Identical Natural Areas");
|
---|
| 87 | }
|
---|
| 88 |
|
---|
| 89 | area:closed:areaStyle[tag("landuse") = parent_tag("landuse")] ⧉ area:closed:areaStyle[landuse] {
|
---|
| 90 | throwWarning: tr("Overlapping Identical Landuses");
|
---|
[6719] | 91 | }
|
---|
| 92 |
|
---|
| 93 | /* see ticket:#9522 */
|
---|
| 94 | node[tag("amenity") = parent_tag("amenity")] ∈ *[amenity][amenity != parking] {
|
---|
| 95 | throwWarning: tr("{0} inside {1}", concat("amenity=", tag("amenity")), concat("amenity=", tag("amenity")));
|
---|
| 96 | }
|
---|
| 97 | node[tag("leisure") = parent_tag("leisure")] ∈ *[leisure] {
|
---|
| 98 | throwWarning: tr("{0} inside {1}", concat("leisure=", tag("leisure")), concat("leisure=", tag("leisure")));
|
---|
| 99 | }
|
---|
| 100 | node[tag("tourism") = parent_tag("tourism")] ∈ *[tourism] {
|
---|
| 101 | throwWarning: tr("{0} inside {1}", concat("tourism=", tag("tourism")), concat("tourism=", tag("tourism")));
|
---|
| 102 | }
|
---|
| 103 | node[tag("shop") = parent_tag("shop")] ∈ *[shop] {
|
---|
| 104 | throwWarning: tr("{0} inside {1}", concat("shop=", tag("shop")), concat("shop=", tag("shop")));
|
---|
[6759] | 105 | }
|
---|
| 106 | node[tag("power") = parent_tag("power")] ∈ *[power] {
|
---|
| 107 | throwWarning: tr("{0} inside {1}", concat("power=", tag("power")), concat("power=", tag("power")));
|
---|
[7645] | 108 | }
|
---|