Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [out:json][bbox:{{bbox}}];
- // Incorrect Geometry
- (
- node[area=no];
- node[oneway];
- node[bridge];
- node[sidewalk];
- node[footway];
- 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];
- node[boundary=administrative];
- node[golf=green];
- node[golf=bunker];
- node[golf=fairway];
- node[area=yes];
- 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[waterway=riverbank];
- node[man_made=bridge];
- node[man_made=breakwater];
- node[aeroway=apron];
- node[power=plant];
- node["building:part"];
- node["source:outline"];
- node[type=multipolygon];
- node[route];
- node[restriction];
- way[entrance];
- way[railway=subway_entrance];
- way[man_made=survey_point];
- way[aeroway=holding_position];
- way[power=transformer];
- way[power=pole];
- way[power=catenary_mast];
- way[power=terminal];
- way[power=tower];
- 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];
- 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[route=bus];
- node[leisure=park][natural=tree];
- node[leisure=park][natural!=tree];
- node["source:geometry"];
- );
- out body;
- >;
- out skel qt;
- // Node features that should be connected to a way but are not.
- way->.ways;
- (
- node(w.ways)[entrance];
- node(w.ways)[traffic_calming];
- node(w.ways)[highway=passing_place];
- node(w.ways)[highway=mini_roundabout];
- node(w.ways)[highway=motorway_junction];
- node(w.ways)[highway=turning_loop];
- node(w.ways)[highway=turning_circle];
- node(w.ways)[highway=stop];
- node(w.ways)[highway=give_way];
- node(w.ways)[highway=traffic_signals];
- node(w.ways)[highway=crossing];
- node(w.ways)[crossing];
- node(w.ways)[highway=milestone];
- node(w.ways)[railway=milestone];
- node(w.ways)[railway=crossing];
- node(w.ways)[railway=level_crossing];
- node(w.ways)[railway=buffer_stop];
- node(w.ways)[public_transport=stop_position];
- node(w.ways)[aeroway=holding_position];
- node(w.ways)[noexit];
- node(w.ways)[waterway=dam];
- node(w.ways)[waterway=weir];
- node(w.ways)[waterway=waterfall];
- node(w.ways)[amenity=ferry_terminal];
- node(w.ways)[leisure=slipway];
- node(w.ways)[mountain_pass=yes];
- node(w.ways)[barrier=gate];
- node(w.ways)[barrier=lift_gate];
- node(w.ways)[barrier=swing_gate];
- node(w.ways)[barrier=toll_booth];
- node(w.ways)[barrier=turnstile];
- node(w.ways)[barrier="full-height_turnstile"];
- node(w.ways)[barrier=motorcycle_barrier];
- node(w.ways)[barrier=rope];
- node(w.ways)[barrier=sally_port];
- node(w.ways)[barrier=spikes];
- node(w.ways)[barrier=stile];
- node(w.ways)[barrier=sump_buster];
- node(w.ways)[barrier=kerb];
- node(w.ways)[barrier=border_control];
- node(w.ways)[barrier=bump_gate];
- node(w.ways)[barrier=bus_trap];
- node(w.ways)[barrier=cattle_grid];
- node(w.ways)[barrier=chain];
- node(w.ways)[barrier=cycle_barrier];
- node(w.ways)[barrier=hampshire_gate];
- node(w.ways)[barrier=height_restrictor];
- node(w.ways)[barrier=debris];
- )->.connected;
- (
- node[entrance];
- node[traffic_calming];
- node[highway=passing_place];
- node[highway=mini_roundabout];
- node[highway=motorway_junction];
- node[highway=turning_loop];
- node[highway=turning_circle];
- node[highway=stop];
- node[highway=give_way];
- node[highway=traffic_signals];
- node[highway=crossing];
- node[crossing];
- node[highway=milestone];
- node[railway=milestone];
- node[railway=crossing];
- node[railway=level_crossing];
- node[railway=buffer_stop];
- node[public_transport=stop_position];
- node[aeroway=holding_position];
- node[noexit];
- node[waterway=dam];
- node[waterway=weir];
- node[waterway=waterfall];
- node[amenity=ferry_terminal];
- node[leisure=slipway];
- node[mountain_pass=yes];
- node[barrier=gate];
- node[barrier=lift_gate];
- node[barrier=swing_gate];
- node[barrier=toll_booth];
- node[barrier=turnstile];
- node[barrier="full-height_turnstile"];
- node[barrier=motorcycle_barrier];
- node[barrier=rope];
- node[barrier=sally_port];
- node[barrier=spikes];
- node[barrier=stile];
- node[barrier=sump_buster];
- node[barrier=kerb];
- node[barrier=border_control];
- node[barrier=bump_gate];
- node[barrier=bus_trap];
- node[barrier=cattle_grid];
- node[barrier=chain];
- node[barrier=cycle_barrier];
- node[barrier=hampshire_gate];
- node[barrier=height_restrictor];
- node[barrier=debris];
- )->.all;
- (.all; - .connected;);
- out body;
- >;
- out skel qt;
- // Where a bridge and a waterway share a node
- (
- way[railway][bridge];
- way[highway][bridge];
- )->.bridge;
- node(w.bridge)->.bridgenodes;
- way[waterway]->.water;
- node(w.water)->.waternodes;
- node.bridgenodes.waternodes->.intersect;
- way(bn.intersect);
- out body;
- >;
- out skel qt;
- /* INFO LEVEL CHECKS
- way[highway]->.hwy;
- node(w.hwy)[tourism=information][information=guidepost];
- out body;
- >;
- out skel qt;
- */
- // Where a highway connects to an inappropriate feature
- way[highway]->.hwy;
- (
- node(w.hwy)[amenity][!entrance][amenity !~"(parking|parking_space|parking_entrance|motorcycle_parking|bicycle_parking|bus_station|car_wash|ferry_terminal|weighbridge)"];
- node(w.hwy)[building][!entrance];
- node(w.hwy)[leisure][!entrance][leisure!=slipway];
- node(w.hwy)[office][!entrance];
- node(w.hwy)[shop][!entrance];
- )->.result;
- way(bn.result);
- out body;
- >;
- out skel qt;
- // Node connects a power line or cable with an object which is not related to the power infrastructure
- (
- way[power=line];
- way[power=minor_line];
- way[power=cable];
- )->.line;
- node(w.line)->.linenodes;
- way[!power][!building]->.badfeature;
- node(w.badfeature)->.badfeaturenodes;
- node.linenodes.badfeaturenodes->.result;
- way(bn.result);
- out body;
- >;
- out skel qt;
- // a ford should be on a node where a waterway and highway intersect
- node[ford][ford!=no]->.allford;
- way[waterway]->.wway;
- way[highway]->.hwy;
- (
- node(w.wway)[ford][ford!=no];
- node(w.wway)[ford][ford!=no];
- )->.wwayford;
- (
- node(w.hwy)[ford][ford!=no];
- node(w.hwy)[ford][ford!=no];
- )->.hwyford;
- node.wwayford.hwyford->.intersectford;
- (.allford; - .intersectford;)->.fords;
- .fords out body;
- way(bn.fords);
- out body;
- >;
- out skel qt;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement