[7735] | 1 | /* {0} on a node, should be a way */
|
---|
[6550] | 2 | node[oneway],
|
---|
[7960] | 3 | node[bridge],
|
---|
[7707] | 4 | node[sidewalk],
|
---|
[7814] | 5 | node[footway],
|
---|
[7960] | 6 | node[man_made=embankment],
|
---|
[7975] | 7 | node[man_made=groyne],
|
---|
[7915] | 8 | node[aerialway=cable_car],
|
---|
| 9 | node[aerialway=gondola],
|
---|
| 10 | node[aerialway=chair_lift],
|
---|
| 11 | node[aerialway=mixed_lift],
|
---|
| 12 | node[aerialway=drag_lift],
|
---|
| 13 | node[aerialway=t-bar],
|
---|
| 14 | node[aerialway=j-bar],
|
---|
| 15 | node[aerialway=platter],
|
---|
| 16 | node[aerialway=magic_carpet],
|
---|
| 17 | node[aerialway=rope_tow],
|
---|
| 18 | node[aerialway=goods],
|
---|
[7977] | 19 | node[aeroway=taxiway],
|
---|
| 20 | node[aeroway=runway],
|
---|
| 21 | node[railway=rail],
|
---|
| 22 | node[railway=narrow_gauge],
|
---|
| 23 | node[railway=monorail],
|
---|
| 24 | node[railway=preserved],
|
---|
| 25 | node[railway=light_rail],
|
---|
| 26 | node[railway=subway],
|
---|
| 27 | node[railway=tram],
|
---|
| 28 | node[railway=disused],
|
---|
| 29 | node[railway=abandoned],
|
---|
[7737] | 30 | node[waterway=river],
|
---|
| 31 | node[waterway=canal],
|
---|
| 32 | node[waterway=wadi],
|
---|
| 33 | node[waterway=stream],
|
---|
| 34 | node[waterway=ditch],
|
---|
[7975] | 35 | node[waterway=drain],
|
---|
[7735] | 36 | node[natural=coastline],
|
---|
| 37 | node[natural=ridge],
|
---|
| 38 | node[natural=tree_row] {
|
---|
[7942] | 39 | throwWarning: tr("{0} on a node. Should be used on a way.", "{0.tag}");
|
---|
[6550] | 40 | assertMatch: "node oneway=-1";
|
---|
| 41 | assertNoMatch: "way oneway=-1";
|
---|
| 42 | assertMatch: "node bridge=yes";
|
---|
[7963] | 43 | assertMatch: "node bridge=viaduct";
|
---|
[6611] | 44 | }
|
---|
| 45 |
|
---|
[7735] | 46 | /* {0} on a node, should be an area; see ticket #10679 */
|
---|
| 47 | node[landuse],
|
---|
| 48 | node[natural=scree],
|
---|
| 49 | node[natural=scrub],
|
---|
| 50 | node[natural=fell],
|
---|
| 51 | node[natural=heath],
|
---|
| 52 | node[natural=wood],
|
---|
| 53 | node[natural=grassland],
|
---|
| 54 | node[natural=wetland],
|
---|
| 55 | node[natural=water],
|
---|
| 56 | node[natural=mud],
|
---|
| 57 | node[natural=beach],
|
---|
| 58 | node[natural=sand],
|
---|
| 59 | node[natural=wood],
|
---|
| 60 | node[natural=bare_rock],
|
---|
| 61 | node[waterway=riverbank],
|
---|
[7960] | 62 | node[man_made=bridge],
|
---|
[7975] | 63 | node[man_made=breakwater],
|
---|
[7977] | 64 | node[aeroway=apron],
|
---|
[7967] | 65 | node[power=plant],
|
---|
[7735] | 66 | node[source:outline] {
|
---|
| 67 | throwWarning: tr("{0} on a node. Should be drawn as an area.", "{0.tag}");
|
---|
[7468] | 68 | }
|
---|
| 69 |
|
---|
[7744] | 70 | /* {0} on a node, should be a relation; see #10252, #10769 */
|
---|
| 71 | node[route],
|
---|
| 72 | node[restriction] {
|
---|
| 73 | throwWarning: tr("{0}=* on a node. Should be used in a relation", "{0.key}");
|
---|
| 74 | }
|
---|
| 75 |
|
---|
[7942] | 76 | /* {0} on a way, should be a node */
|
---|
[7960] | 77 | way[entrance],
|
---|
| 78 | way[man_made=survey_point],
|
---|
[7967] | 79 | way[power=pole],
|
---|
[7977] | 80 | way[amenity=vending_machine],
|
---|
[7942] | 81 | way[natural=peak],
|
---|
| 82 | way[natural=saddle],
|
---|
| 83 | way[natural=volcano],
|
---|
| 84 | way[natural=tree] {
|
---|
| 85 | throwWarning: tr("{0} on a way. Should be used on a node.", "{0.tag}");
|
---|
| 86 | }
|
---|
| 87 |
|
---|
[7744] | 88 | /* {0} on a way, should be a relation; see #10252 */
|
---|
| 89 | way[route=bus] {
|
---|
| 90 | throwWarning: tr("{0} on a way. Should be used in a relation", "{0.tag}");
|
---|
| 91 | }
|
---|
| 92 |
|
---|
[7279] | 93 | /* see ticket:#10125 */
|
---|
| 94 | node[source:geometry] {
|
---|
| 95 | throwWarning: tr("{0} on a node", "{0.key}");
|
---|
| 96 | fixChangeKey: "source:geometry => source:position";
|
---|
| 97 | }
|
---|
| 98 |
|
---|
[6611] | 99 | /* Building inside building (spatial test) */
|
---|
[7164] | 100 | *[building][building!~/no|entrance/][any(tag("layer"),"0") = any(parent_tag("layer"),"0")] ∈
|
---|
[6861] | 101 | *[building][building!~/no|entrance/] {
|
---|
[6611] | 102 | throwWarning: tr("Building inside building");
|
---|
[6613] | 103 | }
|
---|
| 104 |
|
---|
| 105 | /* Overlapping areas (spatial test) */
|
---|
| 106 | area[natural =~ /^(water|wetland|coastline)$/], area[landuse=reservoir] {
|
---|
| 107 | set water_area;
|
---|
| 108 | }
|
---|
| 109 |
|
---|
[7280] | 110 | /* area:closed:areaStyle.water_area ⧉ area:closed:areaStyle.water_area -- does not work for now -- see ticket#10215 */
|
---|
| 111 | area:closed:areaStyle[natural =~ /^(water|wetland|coastline)$/] ⧉ area:closed:areaStyle.water_area,
|
---|
| 112 | area:closed:areaStyle[landuse=reservoir] ⧉ area:closed:areaStyle.water_area {
|
---|
[6613] | 113 | throwWarning: tr("Overlapping Water Areas");
|
---|
| 114 | }
|
---|
| 115 |
|
---|
[6630] | 116 | area:closed:areaStyle ⧉ area:closed:areaStyle {
|
---|
[6613] | 117 | throwOther: tr("Overlapping Areas");
|
---|
| 118 | }
|
---|
[6614] | 119 |
|
---|
| 120 | /* see ticket #9311 */
|
---|
[6628] | 121 | node[amenity=parking]["capacity:disabled" !~ /^(yes|[0-9]+)$/] ∈ *[amenity=parking] {
|
---|
[6614] | 122 | throwWarning: tr("{0} inside {1}", "amenity=parking", "amenity=parking");
|
---|
[6680] | 123 | }
|
---|
| 124 |
|
---|
| 125 | /* see ticket #9556 */
|
---|
| 126 | area:closed:areaStyle[tag("natural") = parent_tag("natural")] ⧉ area:closed:areaStyle[natural] {
|
---|
| 127 | throwWarning: tr("Overlapping Identical Natural Areas");
|
---|
| 128 | }
|
---|
| 129 |
|
---|
| 130 | area:closed:areaStyle[tag("landuse") = parent_tag("landuse")] ⧉ area:closed:areaStyle[landuse] {
|
---|
| 131 | throwWarning: tr("Overlapping Identical Landuses");
|
---|
[6719] | 132 | }
|
---|
| 133 |
|
---|
| 134 | /* see ticket:#9522 */
|
---|
| 135 | node[tag("amenity") = parent_tag("amenity")] ∈ *[amenity][amenity != parking] {
|
---|
| 136 | throwWarning: tr("{0} inside {1}", concat("amenity=", tag("amenity")), concat("amenity=", tag("amenity")));
|
---|
| 137 | }
|
---|
| 138 | node[tag("leisure") = parent_tag("leisure")] ∈ *[leisure] {
|
---|
| 139 | throwWarning: tr("{0} inside {1}", concat("leisure=", tag("leisure")), concat("leisure=", tag("leisure")));
|
---|
| 140 | }
|
---|
| 141 | node[tag("tourism") = parent_tag("tourism")] ∈ *[tourism] {
|
---|
| 142 | throwWarning: tr("{0} inside {1}", concat("tourism=", tag("tourism")), concat("tourism=", tag("tourism")));
|
---|
| 143 | }
|
---|
| 144 | node[tag("shop") = parent_tag("shop")] ∈ *[shop] {
|
---|
| 145 | throwWarning: tr("{0} inside {1}", concat("shop=", tag("shop")), concat("shop=", tag("shop")));
|
---|
[6759] | 146 | }
|
---|
| 147 | node[tag("power") = parent_tag("power")] ∈ *[power] {
|
---|
| 148 | throwWarning: tr("{0} inside {1}", concat("power=", tag("power")), concat("power=", tag("power")));
|
---|
[7793] | 149 | }
|
---|
| 150 |
|
---|
[7807] | 151 | /* isolated nodes which should be part of a way, see #10825 */
|
---|
[7793] | 152 | node:unconnected[entrance],
|
---|
| 153 | node:unconnected[traffic_calming],
|
---|
| 154 | node:unconnected[highway=passing_place],
|
---|
| 155 | node:unconnected[highway=mini_roundabout],
|
---|
| 156 | node:unconnected[highway=motorway_junction],
|
---|
| 157 | node:unconnected[highway=turning_loop],
|
---|
| 158 | node:unconnected[highway=turning_circle],
|
---|
[7807] | 159 | node:unconnected[highway=stop],
|
---|
| 160 | node:unconnected[highway=give_way],
|
---|
[7793] | 161 | node:unconnected[highway=traffic_signals],
|
---|
| 162 | node:unconnected[highway=crossing],
|
---|
| 163 | node:unconnected[crossing],
|
---|
| 164 | node:unconnected[railway=crossing],
|
---|
| 165 | node:unconnected[railway=level_crossing],
|
---|
| 166 | node:unconnected[railway=buffer_stop],
|
---|
[7807] | 167 | node:unconnected[public_transport=stop_position],
|
---|
[7793] | 168 | node:unconnected[noexit],
|
---|
| 169 | node:unconnected[waterway=dam],
|
---|
| 170 | node:unconnected[waterway=weir],
|
---|
| 171 | node:unconnected[waterway=waterfall],
|
---|
| 172 | node:unconnected[amenity=ferry_terminal],
|
---|
[7807] | 173 | node:unconnected[mountain_pass=yes],
|
---|
| 174 | node:unconnected[barrier=gate],
|
---|
| 175 | node:unconnected[barrier=lift_gate],
|
---|
| 176 | node:unconnected[barrier=swing_gate],
|
---|
| 177 | node:unconnected[barrier=toll_booth],
|
---|
| 178 | node:unconnected[barrier=turnstile],
|
---|
| 179 | node:unconnected[barrier=full-height_turnstile],
|
---|
| 180 | node:unconnected[barrier=motorcycle_barrier],
|
---|
| 181 | node:unconnected[barrier=rope],
|
---|
| 182 | node:unconnected[barrier=sally_port],
|
---|
| 183 | node:unconnected[barrier=spikes],
|
---|
| 184 | node:unconnected[barrier=stile],
|
---|
| 185 | node:unconnected[barrier=sump_buster],
|
---|
| 186 | node:unconnected[barrier=kerb],
|
---|
| 187 | node:unconnected[barrier=border_control],
|
---|
| 188 | node:unconnected[barrier=bump_gate],
|
---|
| 189 | node:unconnected[barrier=bus_trap],
|
---|
| 190 | node:unconnected[barrier=cattle_grid],
|
---|
| 191 | node:unconnected[barrier=chain],
|
---|
| 192 | node:unconnected[barrier=cycle_barrier],
|
---|
| 193 | node:unconnected[barrier=hampshire_gate],
|
---|
| 194 | node:unconnected[barrier=height_restrictor],
|
---|
| 195 | node:unconnected[barrier=debris] {
|
---|
[7793] | 196 | throwWarning: tr("{0} must be connected to a way", "{1.tag}");
|
---|
[7645] | 197 | }
|
---|