[7735] | 1 | /* {0} on a node, should be a way */
|
---|
[11477] | 2 | node[area=no],
|
---|
[6550] | 3 | node[oneway],
|
---|
[7960] | 4 | node[bridge],
|
---|
[7707] | 5 | node[sidewalk],
|
---|
[15312] | 6 | node[footway][footway!=crossing], /* footway=crossing has own warning in highway.mapcss */
|
---|
[7960] | 7 | node[man_made=embankment],
|
---|
[7975] | 8 | node[man_made=groyne],
|
---|
[8147] | 9 | node[man_made=cutline],
|
---|
[9494] | 10 | node[power=line],
|
---|
[8147] | 11 | node[cutline],
|
---|
[7915] | 12 | node[aerialway=cable_car],
|
---|
| 13 | node[aerialway=gondola],
|
---|
| 14 | node[aerialway=chair_lift],
|
---|
| 15 | node[aerialway=mixed_lift],
|
---|
| 16 | node[aerialway=drag_lift],
|
---|
| 17 | node[aerialway=t-bar],
|
---|
| 18 | node[aerialway=j-bar],
|
---|
| 19 | node[aerialway=platter],
|
---|
| 20 | node[aerialway=magic_carpet],
|
---|
| 21 | node[aerialway=rope_tow],
|
---|
| 22 | node[aerialway=goods],
|
---|
[7977] | 23 | node[aeroway=taxiway],
|
---|
| 24 | node[aeroway=runway],
|
---|
| 25 | node[railway=rail],
|
---|
| 26 | node[railway=narrow_gauge],
|
---|
| 27 | node[railway=monorail],
|
---|
| 28 | node[railway=preserved],
|
---|
| 29 | node[railway=light_rail],
|
---|
| 30 | node[railway=subway],
|
---|
| 31 | node[railway=tram],
|
---|
| 32 | node[railway=disused],
|
---|
| 33 | node[railway=abandoned],
|
---|
[7737] | 34 | node[waterway=river],
|
---|
| 35 | node[waterway=canal],
|
---|
| 36 | node[waterway=stream],
|
---|
| 37 | node[waterway=ditch],
|
---|
[7975] | 38 | node[waterway=drain],
|
---|
[7735] | 39 | node[natural=coastline],
|
---|
| 40 | node[natural=ridge],
|
---|
[8135] | 41 | node[natural=valley],
|
---|
[7735] | 42 | node[natural=tree_row] {
|
---|
[7942] | 43 | throwWarning: tr("{0} on a node. Should be used on a way.", "{0.tag}");
|
---|
[6550] | 44 | assertMatch: "node oneway=-1";
|
---|
| 45 | assertNoMatch: "way oneway=-1";
|
---|
| 46 | assertMatch: "node bridge=yes";
|
---|
[7963] | 47 | assertMatch: "node bridge=viaduct";
|
---|
[6611] | 48 | }
|
---|
| 49 |
|
---|
[13083] | 50 | /* {0} on a node, should be a way or relation */
|
---|
| 51 | node[boundary=administrative] {
|
---|
| 52 | throwWarning: tr("{0} on a node. Should be used on a way or relation.", "{0.tag}");
|
---|
| 53 | }
|
---|
| 54 |
|
---|
[14830] | 55 | /* {0} on a node, should be an area; #10679 #16528 #16792 #12502 #17402*/
|
---|
[14059] | 56 | node[golf=green],
|
---|
| 57 | node[golf=bunker],
|
---|
| 58 | node[golf=fairway],
|
---|
[11477] | 59 | node[area=yes],
|
---|
[14577] | 60 | node[area:highway],
|
---|
[7735] | 61 | node[landuse],
|
---|
[18653] | 62 | node[natural=bare_rock],
|
---|
| 63 | node[natural=beach],
|
---|
[7735] | 64 | node[natural=fell],
|
---|
[18653] | 65 | node[natural=glacier],
|
---|
| 66 | node[natural=grassland],
|
---|
[7735] | 67 | node[natural=heath],
|
---|
| 68 | node[natural=mud],
|
---|
| 69 | node[natural=sand],
|
---|
[18653] | 70 | node[natural=scree],
|
---|
| 71 | node[natural=scrub],
|
---|
| 72 | node[natural=water],
|
---|
| 73 | node[natural=wetland],
|
---|
[7735] | 74 | node[natural=wood],
|
---|
[14830] | 75 | node[leisure=park][natural!=tree], /* For nodes with both tags another warning is created in combinations.mapcss */
|
---|
| 76 | node[leisure=nature_reserve],
|
---|
[7735] | 77 | node[waterway=riverbank],
|
---|
[7960] | 78 | node[man_made=bridge],
|
---|
[7975] | 79 | node[man_made=breakwater],
|
---|
[7977] | 80 | node[aeroway=apron],
|
---|
[7967] | 81 | node[power=plant],
|
---|
[14299] | 82 | node[power=switchgear],
|
---|
[8139] | 83 | node[building:part],
|
---|
[7735] | 84 | node[source:outline] {
|
---|
| 85 | throwWarning: tr("{0} on a node. Should be drawn as an area.", "{0.tag}");
|
---|
[7468] | 86 | }
|
---|
| 87 |
|
---|
[17249] | 88 | /* {0} on a node, should be a relation; Error level; #10252, #10769, #14288 */
|
---|
[11500] | 89 | node[type=multipolygon],
|
---|
[14712] | 90 | node[interval],
|
---|
[7744] | 91 | node[route],
|
---|
| 92 | node[restriction] {
|
---|
[11500] | 93 | throwError: tr("{0} on a node. Should be used in a relation", "{0.tag}");
|
---|
[7744] | 94 | }
|
---|
| 95 |
|
---|
[18536] | 96 | /* {0} on a way, should be a node (0.tag) */
|
---|
[14593] | 97 | way[emergency=fire_hydrant],
|
---|
[17106] | 98 | way[emergency=defibrillator],
|
---|
[10429] | 99 | way[railway=subway_entrance],
|
---|
[7960] | 100 | way[man_made=survey_point],
|
---|
[9500] | 101 | way[power=transformer],
|
---|
[7967] | 102 | way[power=pole],
|
---|
[14123] | 103 | way[power=catenary_mast],
|
---|
[18324] | 104 | way[power=connection],
|
---|
[14123] | 105 | way[power=terminal],
|
---|
[9494] | 106 | way[power=tower]!:closed,
|
---|
[7977] | 107 | way[amenity=vending_machine],
|
---|
[7942] | 108 | way[natural=peak],
|
---|
| 109 | way[natural=saddle],
|
---|
| 110 | way[natural=volcano],
|
---|
[12708] | 111 | way[natural=tree],
|
---|
[12775] | 112 | way[highway=give_way],
|
---|
| 113 | way[highway=milestone],
|
---|
| 114 | way[highway=mini_roundabout],
|
---|
| 115 | way[highway=stop],
|
---|
| 116 | way[highway=street_lamp],
|
---|
| 117 | way[highway=traffic_signals],
|
---|
| 118 | way[highway=turning_loop],
|
---|
| 119 | way[highway=turning_circle],
|
---|
[12708] | 120 | way[highway=motorway_junction] {
|
---|
[7942] | 121 | throwWarning: tr("{0} on a way. Should be used on a node.", "{0.tag}");
|
---|
| 122 | }
|
---|
| 123 |
|
---|
[18536] | 124 | /* {0} on a way, should be a node (0.key) */
|
---|
| 125 | way[voltage:primary],
|
---|
| 126 | way[voltage:secondary],
|
---|
| 127 | way[voltage:tertiary],
|
---|
| 128 | way[transformer],
|
---|
| 129 | way[line_attachment],
|
---|
| 130 | way[line_management],
|
---|
| 131 | way[entrance],
|
---|
| 132 | way[door] {
|
---|
| 133 | throwWarning: tr("{0} on a way. Should be used on a node.", "{0.key}");
|
---|
| 134 | }
|
---|
| 135 |
|
---|
[17249] | 136 | /* {0} on a way, should be a relation; #15642, #10252, #14288 */
|
---|
[13217] | 137 | way[restriction][restriction =~ /^(no_right_turn|no_left_turn|no_u_turn|no_straight_on|only_right_turn|only_left_turn|only_straight_on|no_entry|no_exit)$/],
|
---|
[11500] | 138 | way[type=multipolygon],
|
---|
[14712] | 139 | way[interval][route!=ferry],
|
---|
[7744] | 140 | way[route=bus] {
|
---|
[11500] | 141 | throwError: tr("{0} on a way. Should be used in a relation", "{0.tag}");
|
---|
[7744] | 142 | }
|
---|
| 143 |
|
---|
[17249] | 144 | /* {0} on a closed way, should be a unclosed way; #19981 */
|
---|
| 145 | way:closed[power=line] {
|
---|
| 146 | throwWarning: tr("{0} on a closed way. Should be used on an unclosed way.", "{1.tag}");
|
---|
| 147 | }
|
---|
| 148 |
|
---|
[17957] | 149 | /* #20902 */
|
---|
| 150 | relation[area?] {
|
---|
| 151 | throwWarning: tr("{0} on a relation", "{0.key}");
|
---|
| 152 | fixRemove: "{0.key}";
|
---|
| 153 | }
|
---|
| 154 |
|
---|
[17088] | 155 | /* #14395, #17025, #19506 */
|
---|
[13006] | 156 | way[highway][area!=yes][!tunnel][!covered] > node {
|
---|
| 157 | set node_in_highway;
|
---|
| 158 | }
|
---|
[15016] | 159 | way[highway][area!=yes][!tunnel][!covered]:closed > node {
|
---|
| 160 | set node_in_closed_highway;
|
---|
| 161 | }
|
---|
| 162 | way[highway][area!=yes][!tunnel][!covered] >[index=1] node,
|
---|
| 163 | way[highway][area!=yes][!tunnel][!covered] >[index=-1] node {
|
---|
| 164 | set first_last_highway_node;
|
---|
| 165 | }
|
---|
[17088] | 166 | way[building][building!=no] > node[!entrance].node_in_closed_highway {
|
---|
[17105] | 167 | set node_connects_highway_and_building; /* avoids duplicate warnings with following rule */
|
---|
[13006] | 168 | throwWarning: tr("node connects highway and building");
|
---|
| 169 | }
|
---|
[17088] | 170 | way[building][building!=no] > node[!entrance].node_in_highway!.first_last_highway_node!.node_connects_highway_and_building {
|
---|
| 171 | throwWarning: tr("node connects highway and building");
|
---|
| 172 | }
|
---|
[13006] | 173 |
|
---|
| 174 | /* #15035, must not warn for node 3815077900*/
|
---|
| 175 | node[man_made!=monitoring_station][at(0.0,0.0)] {
|
---|
| 176 | throwError: tr("Object at Position 0.00E 0.00N. There is nothing at this position except an already mapped weather buoy.");
|
---|
| 177 | fixDeleteObject: this;
|
---|
| 178 | }
|
---|
| 179 |
|
---|
[17249] | 180 | /* #10125 */
|
---|
[7279] | 181 | node[source:geometry] {
|
---|
| 182 | throwWarning: tr("{0} on a node", "{0.key}");
|
---|
| 183 | fixChangeKey: "source:geometry => source:position";
|
---|
| 184 | }
|
---|
| 185 |
|
---|
[6611] | 186 | /* Building inside building (spatial test) */
|
---|
[7164] | 187 | *[building][building!~/no|entrance/][any(tag("layer"),"0") = any(parent_tag("layer"),"0")] ∈
|
---|
[15105] | 188 | area[building][building!~/no|entrance/] {
|
---|
[6611] | 189 | throwWarning: tr("Building inside building");
|
---|
[6613] | 190 | }
|
---|
| 191 |
|
---|
[16783] | 192 | /* Building overlapping building or building:part (spatial test) */
|
---|
| 193 | area[building][building!~/no|entrance/] ⧉ area[building:part][building:part!~/no|entrance/],
|
---|
[15961] | 194 | area[building][building!~/no|entrance/] ⧉ area[building][building!~/no|entrance/] {
|
---|
| 195 | throwWarning: tr("Overlapping buildings");
|
---|
| 196 | }
|
---|
| 197 |
|
---|
[6613] | 198 | /* Overlapping areas (spatial test) */
|
---|
[17629] | 199 | area[natural =~ /^(water|wetland|coastline)$/], area[waterway=riverbank], area[landuse=reservoir] {
|
---|
[6613] | 200 | set water_area;
|
---|
| 201 | }
|
---|
| 202 |
|
---|
[17680] | 203 | /* area:closed.water_area ⧉ area:closed.water_area -- does not work for now -- see ticket#10215 */
|
---|
| 204 | area:closed[natural =~ /^(water|wetland|coastline)$/] ⧉ area:closed.water_area,
|
---|
| 205 | area:closed[waterway=riverbank] ⧉ area:closed.water_area,
|
---|
| 206 | area:closed[landuse=reservoir] ⧉ area:closed.water_area {
|
---|
[6613] | 207 | throwWarning: tr("Overlapping Water Areas");
|
---|
| 208 | }
|
---|
| 209 |
|
---|
[16145] | 210 | /* Water area inside water area (spatial test) */
|
---|
[17680] | 211 | area:closed[natural =~ /^(water|wetland|coastline)$/] ⊆ area:closed.water_area,
|
---|
| 212 | area:closed[waterway=riverbank] ⊆ area:closed.water_area,
|
---|
| 213 | area:closed[landuse=reservoir] ⊆ area:closed.water_area,
|
---|
| 214 | area:closed[natural =~ /^(water|wetland|coastline)$/] ⊇ area:closed.water_area,
|
---|
| 215 | area:closed[waterway=riverbank] ⊇ area:closed.water_area,
|
---|
| 216 | area:closed[landuse=reservoir] ⊇ area:closed.water_area {
|
---|
[16145] | 217 | throwWarning: tr("Water area inside water area");
|
---|
| 218 | }
|
---|
| 219 |
|
---|
[18019] | 220 | area:completely_downloaded:closed:areaStyle ⧉ area:completely_downloaded:closed:areaStyle {
|
---|
[6613] | 221 | throwOther: tr("Overlapping Areas");
|
---|
| 222 | }
|
---|
[6614] | 223 |
|
---|
[17249] | 224 | /* #9311 */
|
---|
[15105] | 225 | node[amenity=parking]["capacity:disabled" !~ /^(yes|[0-9]+)$/] ∈ area[amenity=parking] {
|
---|
[6614] | 226 | throwWarning: tr("{0} inside {1}", "amenity=parking", "amenity=parking");
|
---|
[11353] | 227 | group: tr("{0} inside {1}", "amenity", "amenity");
|
---|
[6680] | 228 | }
|
---|
| 229 |
|
---|
[17629] | 230 | /* #9556, #20570 */
|
---|
| 231 | area:closed:areaStyle[tag("natural") = parent_tag("natural")] ⧉ area:closed:areaStyle[natural][natural !~ /^(water|wetland|coastline)$/] {
|
---|
[6680] | 232 | throwWarning: tr("Overlapping Identical Natural Areas");
|
---|
| 233 | }
|
---|
| 234 |
|
---|
[17680] | 235 | area:closed[tag("landuse") = parent_tag("landuse")] ⧉ area:closed[landuse] {
|
---|
[6680] | 236 | throwWarning: tr("Overlapping Identical Landuses");
|
---|
[6719] | 237 | }
|
---|
| 238 |
|
---|
[17249] | 239 | /* #9522 */
|
---|
[15105] | 240 | node[tag("amenity") = parent_tag("amenity")] ∈ area[amenity][amenity != parking] {
|
---|
[6719] | 241 | throwWarning: tr("{0} inside {1}", concat("amenity=", tag("amenity")), concat("amenity=", tag("amenity")));
|
---|
[10710] | 242 | group: tr("{0} inside {1}", "amenity", "amenity");
|
---|
[6719] | 243 | }
|
---|
[15105] | 244 | node[tag("leisure") = parent_tag("leisure")] ∈ area[leisure] {
|
---|
[6719] | 245 | throwWarning: tr("{0} inside {1}", concat("leisure=", tag("leisure")), concat("leisure=", tag("leisure")));
|
---|
[10710] | 246 | group: tr("{0} inside {1}", "leisure", "leisure");
|
---|
[6719] | 247 | }
|
---|
[15105] | 248 | node[tag("tourism") = parent_tag("tourism")] ∈ area[tourism] {
|
---|
[6719] | 249 | throwWarning: tr("{0} inside {1}", concat("tourism=", tag("tourism")), concat("tourism=", tag("tourism")));
|
---|
[10710] | 250 | group: tr("{0} inside {1}", "tourism", "tourism");
|
---|
[6719] | 251 | }
|
---|
[15105] | 252 | node[tag("shop") = parent_tag("shop")] ∈ area[shop] {
|
---|
[6719] | 253 | throwWarning: tr("{0} inside {1}", concat("shop=", tag("shop")), concat("shop=", tag("shop")));
|
---|
[10710] | 254 | group: tr("{0} inside {1}", "shop", "shop");
|
---|
[6759] | 255 | }
|
---|
[15105] | 256 | node[tag("power") = parent_tag("power")] ∈ area[power] {
|
---|
[6759] | 257 | throwWarning: tr("{0} inside {1}", concat("power=", tag("power")), concat("power=", tag("power")));
|
---|
[10710] | 258 | group: tr("{0} inside {1}", "power", "power");
|
---|
[7793] | 259 | }
|
---|
| 260 |
|
---|
[18355] | 261 | /* isolated nodes which should be part of a way; #10825, #15478, #21688 */
|
---|
[8522] | 262 | node:unconnected:in-downloaded-area[entrance],
|
---|
| 263 | node:unconnected:in-downloaded-area[traffic_calming],
|
---|
| 264 | node:unconnected:in-downloaded-area[highway=passing_place],
|
---|
| 265 | node:unconnected:in-downloaded-area[highway=mini_roundabout],
|
---|
| 266 | node:unconnected:in-downloaded-area[highway=motorway_junction],
|
---|
| 267 | node:unconnected:in-downloaded-area[highway=turning_loop],
|
---|
| 268 | node:unconnected:in-downloaded-area[highway=turning_circle],
|
---|
| 269 | node:unconnected:in-downloaded-area[highway=stop],
|
---|
| 270 | node:unconnected:in-downloaded-area[highway=give_way],
|
---|
| 271 | node:unconnected:in-downloaded-area[highway=traffic_signals],
|
---|
| 272 | node:unconnected:in-downloaded-area[highway=crossing],
|
---|
| 273 | node:unconnected:in-downloaded-area[crossing],
|
---|
[13074] | 274 | node:unconnected:in-downloaded-area[railway=milestone],
|
---|
[8522] | 275 | node:unconnected:in-downloaded-area[railway=crossing],
|
---|
| 276 | node:unconnected:in-downloaded-area[railway=level_crossing],
|
---|
| 277 | node:unconnected:in-downloaded-area[railway=buffer_stop],
|
---|
| 278 | node:unconnected:in-downloaded-area[public_transport=stop_position],
|
---|
[11005] | 279 | node:unconnected:in-downloaded-area[aeroway=holding_position],
|
---|
[8522] | 280 | node:unconnected:in-downloaded-area[noexit],
|
---|
| 281 | node:unconnected:in-downloaded-area[waterway=dam],
|
---|
| 282 | node:unconnected:in-downloaded-area[waterway=weir],
|
---|
| 283 | node:unconnected:in-downloaded-area[waterway=waterfall],
|
---|
| 284 | node:unconnected:in-downloaded-area[amenity=ferry_terminal],
|
---|
[11133] | 285 | node:unconnected:in-downloaded-area[leisure=slipway],
|
---|
[8522] | 286 | node:unconnected:in-downloaded-area[mountain_pass=yes],
|
---|
| 287 | node:unconnected:in-downloaded-area[barrier=gate],
|
---|
| 288 | node:unconnected:in-downloaded-area[barrier=lift_gate],
|
---|
| 289 | node:unconnected:in-downloaded-area[barrier=swing_gate],
|
---|
| 290 | node:unconnected:in-downloaded-area[barrier=toll_booth],
|
---|
| 291 | node:unconnected:in-downloaded-area[barrier=turnstile],
|
---|
| 292 | node:unconnected:in-downloaded-area[barrier=full-height_turnstile],
|
---|
| 293 | node:unconnected:in-downloaded-area[barrier=motorcycle_barrier],
|
---|
| 294 | node:unconnected:in-downloaded-area[barrier=rope],
|
---|
| 295 | node:unconnected:in-downloaded-area[barrier=sally_port],
|
---|
| 296 | node:unconnected:in-downloaded-area[barrier=spikes],
|
---|
| 297 | node:unconnected:in-downloaded-area[barrier=stile],
|
---|
| 298 | node:unconnected:in-downloaded-area[barrier=sump_buster],
|
---|
| 299 | node:unconnected:in-downloaded-area[barrier=kerb],
|
---|
| 300 | node:unconnected:in-downloaded-area[barrier=border_control],
|
---|
| 301 | node:unconnected:in-downloaded-area[barrier=bump_gate],
|
---|
| 302 | node:unconnected:in-downloaded-area[barrier=bus_trap],
|
---|
| 303 | node:unconnected:in-downloaded-area[barrier=cattle_grid],
|
---|
| 304 | node:unconnected:in-downloaded-area[barrier=chain],
|
---|
| 305 | node:unconnected:in-downloaded-area[barrier=cycle_barrier],
|
---|
| 306 | node:unconnected:in-downloaded-area[barrier=hampshire_gate],
|
---|
| 307 | node:unconnected:in-downloaded-area[barrier=height_restrictor],
|
---|
| 308 | node:unconnected:in-downloaded-area[barrier=debris] {
|
---|
[11138] | 309 | throwWarning: tr("{0}", "{2.tag}");
|
---|
| 310 | group: tr("isolated node which must be connected to a way");
|
---|
[8089] | 311 | }
|
---|
| 312 |
|
---|
[11049] | 313 | /* #11127 */
|
---|
[8089] | 314 | way[railway][bridge] > node,
|
---|
| 315 | way[highway][bridge] > node {
|
---|
| 316 | set node_in_bridge;
|
---|
| 317 | }
|
---|
| 318 | way[waterway] > node.node_in_bridge {
|
---|
| 319 | throwWarning: tr("node connects waterway and bridge");
|
---|
[9540] | 320 | }
|
---|
| 321 |
|
---|
[13006] | 322 | /* #11128, #14812, #15032 */
|
---|
[10037] | 323 | way[highway] > node[tourism=information][information=guidepost] {
|
---|
| 324 | set guidepost;
|
---|
| 325 | throwOther: tr("{0} node connected to a highway", "{1.tag}");
|
---|
| 326 | }
|
---|
[15016] | 327 | way >[index=1] node,
|
---|
| 328 | way >[index=-1] node {
|
---|
| 329 | set first_last_node;
|
---|
| 330 | }
|
---|
[18459] | 331 | way[highway] > node[amenity][!entrance][amenity!~/^(parking|parking_space|parking_entrance|motorcycle_parking|bicycle_parking|bus_station|car_wash|ferry_terminal|weighbridge|taxi|toilets|ticket_validator)$/],
|
---|
[10026] | 332 | way[highway] > node[building][!entrance],
|
---|
[15641] | 333 | way[highway] > node[leisure][!entrance][leisure!=slipway][leisure!=fitness_station],
|
---|
[10026] | 334 | way[highway] > node[office][!entrance],
|
---|
[18229] | 335 | way[highway][highway!=corridor] > node[shop][!entrance],
|
---|
[13006] | 336 | way[highway] > node[tourism][!entrance][tourism!=viewpoint]!.guidepost.first_last_node:connection,
|
---|
| 337 | way[highway] > node[tourism][!entrance][tourism!=viewpoint]!.guidepost!.first_last_node {
|
---|
[10028] | 338 | throwWarning: tr("{0} node connected to a highway", "{0.key}");
|
---|
[10026] | 339 | }
|
---|
| 340 |
|
---|
[15964] | 341 | /* #18817 */
|
---|
| 342 | way[man_made=pipeline][location=underground] > node[marker],
|
---|
| 343 | way[power=cable ][location=underground] > node[marker] {
|
---|
| 344 | throwWarning: tr("{0} node connected to an underground object", "{0.key}");
|
---|
| 345 | }
|
---|
| 346 |
|
---|
[9540] | 347 | way[junction=roundabout]:righthandtraffic:clockwise,
|
---|
| 348 | way[junction=roundabout]!:righthandtraffic:anticlockwise {
|
---|
| 349 | throwWarning: tr("suspicious roundabout direction");
|
---|
[9843] | 350 | }
|
---|
| 351 |
|
---|
| 352 | /* #12496 */
|
---|
[10328] | 353 | area:closed[place=islet][eval(areasize()) > 1500000] {
|
---|
[9843] | 354 | throwWarning: tr("{0} on a large area", "{1.tag}");
|
---|
| 355 | suggestAlternative: "place=island";
|
---|
| 356 | fixAdd: "place=island";
|
---|
| 357 | }
|
---|
| 358 |
|
---|
[10328] | 359 | area:closed[place=island][eval(areasize()) < 500000] {
|
---|
[9843] | 360 | throwWarning: tr("{0} on a small area", "{1.tag}");
|
---|
| 361 | suggestAlternative: "place=islet";
|
---|
| 362 | fixAdd: "place=islet";
|
---|
[9985] | 363 | }
|
---|
| 364 |
|
---|
[18328] | 365 | /* #12561 - building larger than Lada car factory (906280 m^2 in OSM) way id 47121317 at N53.56, E49.25, https://en.wikipedia.org/wiki/List_of_largest_buildings#Largest_footprint*/
|
---|
| 366 | area:closed[building][building!=no][eval(areasize()) > 920000] {
|
---|
[11049] | 367 | throwError: tr("Too large building");
|
---|
[9985] | 368 | }
|
---|
[10028] | 369 |
|
---|
[15413] | 370 | /* #12646, #12992, #16334 */
|
---|
[18175] | 371 | way[waterway=~/^(stream|river|drain)$/]!:closed >[index=-1] node[natural!=sinkhole][natural!=cave_entrance][waterway!=stream_end]!:connection:in-downloaded-area {
|
---|
[10232] | 372 | throwWarning: tr("Waterway ends without a connection to another waterway or the direction of the waterway is wrong.");
|
---|
[10389] | 373 | }
|
---|
| 374 |
|
---|
[11744] | 375 | /* #10717, #14535 */
|
---|
| 376 | way:closed[natural=coastline] ∈ area[natural=water],
|
---|
| 377 | way:closed[natural=coastline] ∈ area[waterway=riverbank] {
|
---|
[10389] | 378 | throwError: tr("Coastline inside {1}", "{0.tag}");
|
---|
[11146] | 379 | }
|
---|
| 380 |
|
---|
| 381 | /* #10471 */
|
---|
| 382 | way[waterway] > node[ford?] { set ford_on_waterway; }
|
---|
| 383 | way[highway] > node[ford?] { set ford_on_highway; }
|
---|
| 384 | node[ford?]:in-downloaded-area!.ford_on_waterway, node[ford?]:in-downloaded-area!.ford_on_highway {
|
---|
| 385 | throwWarning: tr("{0} should be on the node where {1} and {2} intersect", "ford", "highway", "waterway");
|
---|
[11232] | 386 | }
|
---|
[11736] | 387 |
|
---|
[11232] | 388 | /* #13877 */
|
---|
| 389 | area:closed[waterway = canal][area!=no],
|
---|
| 390 | area:closed[waterway = drain][area!=no],
|
---|
| 391 | area:closed[waterway = ditch][area!=no],
|
---|
| 392 | area:closed[waterway = stream][area!=no],
|
---|
| 393 | area:closed[waterway = river][area!=no] {
|
---|
| 394 | throwWarning: tr("{0} is the tag for the linear waterway. To tag the water area use {1} + {2} instead.", "{1.tag}", "natural=water", "water=*");
|
---|
[11736] | 395 | }
|
---|
| 396 |
|
---|
[12572] | 397 | /* #15097 */
|
---|
| 398 | way[highway][area!=yes] > node,
|
---|
| 399 | way[man_made=pier] > node {
|
---|
| 400 | set node_in_highway_pier;
|
---|
| 401 | }
|
---|
| 402 | way[route=ferry][tunnel=yes] > node,
|
---|
| 403 | way[route=ferry][bridge=yes] > node {
|
---|
| 404 | set node_in_ferry_bridge_tunnel;
|
---|
| 405 | }
|
---|
| 406 | way[route=ferry]!:closed >[index= 1] node!.node_in_highway_pier!.node_in_ferry_bridge_tunnel:in-downloaded-area,
|
---|
| 407 | way[route=ferry]!:closed >[index=-1] node!.node_in_highway_pier!.node_in_ferry_bridge_tunnel:in-downloaded-area {
|
---|
| 408 | throwWarning: tr("Ferry route is not connected to the road network or branches.");
|
---|
| 409 | }
|
---|
| 410 | way[amenity=ferry_terminal] > node,
|
---|
| 411 | way[man_made=pier] > node {
|
---|
| 412 | set node_in_terminal_pier;
|
---|
| 413 | }
|
---|
| 414 | way[route=ferry]!:closed >[index= 1] node[amenity!=ferry_terminal][man_made!=pier]!.node_in_terminal_pier!.node_in_ferry_bridge_tunnel:in-downloaded-area,
|
---|
| 415 | way[route=ferry]!:closed >[index=-1] node[amenity!=ferry_terminal][man_made!=pier]!.node_in_terminal_pier!.node_in_ferry_bridge_tunnel:in-downloaded-area {
|
---|
| 416 | throwWarning: tr("Ferry route is not connected to a ferry terminal or branches.");
|
---|
[12708] | 417 | }
|
---|