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