Zeigt place-nodes an, bei denen potenziell noch keine Gebäude gemappt wurden. Landuse=residential ohne place-nodes werden nicht berücksichtigt!
Achtung: Kartenausschnitt nicht zu groß wählen! Evtl. timeout individuell anpassen
Overpass-Turbo Abfrage:
http://overpass-turbo.eu/s/qSk
Script:
/* Find place-nodes without buildings around */
[out:json][timeout:90];
//get all place-nodes in bbox for towns, villages, hamlets and isolated_dwellings
( node["place"="town"]({{bbox}}); ) ->.towns;
( node["place"="village"]({{bbox}}); ) ->.villages;
( node["place"="hamlet"]({{bbox}}); ) ->.hamlets;
( node["place"="isolated_dwelling"]({{bbox}}); ) ->.isolated_dwellings;
//get buildings around place-nodes (radius 100m)
way[building](around.towns:100) ->.town_buildings;
way[building](around.villages:100) ->.village_buildings;
way[building](around.hamlets:100) ->.hamlet_buildings;
way[building](around.isolated_dwellings:100) ->.isolated_dwelling_buildings;
//get places-nodes without buildings around
(.towns; - node.towns(around.town_buildings:100);) ->.empty_town;
(.villages; - node.villages(around.village_buildings:100);) ->.empty_village;
(.hamlets; - node.hamlets(around.hamlet_buildings:100);) ->.empty_hamlet;
(.isolated_dwellings; - node.isolated_dwellings(around.isolated_dwelling_buildings:100);) ->.empty_isolated_dwelling;
//print results
(.empty_town; .empty_village; .empty_hamlet; .empty_isolated_dwelling;);
out geom;
//colours for the results
{{style:
node[place=town] { color:black; fill-color:red; }
node[place=village] { color:black; fill-color:blue; }
node[place=hamlet] { color:black; fill-color:yellow; }
node[place=isolated_dwelling] { color:black; fill-color:magenta; }
}}
讨论
Harald Hartmann 于 2017年08月 8日 14:21 的评论
Nicht schlecht, hängt aber auch teilweise davon ab, wo jemand den place-Node platziert hat. Folgendes exemplarisches Beispiel: Bad Colberg-Heldburg das zwischen Heldburg und Bad Colberg mitten in der Pampa liegt…
imagico 于 2017年08月 8日 16:18 的评论
Vielleicht solltest Du place=city dabei nicht weglassen - wobei das dann am Ende oft natürlich falsch getaggt it. Siehe http://overpass-turbo.eu/s/qSQ
milet 于 2017年08月 9日 08:09 的评论
Beides korrekt! Ich hätte vielleicht dazu schreiben sollen, dass es in dieser Form nur ein ganz grobes Werkzeug ist, das einige false-positives liefert und vieles gar nicht erkennt. Hintergrund war, dass ich ganzen kleinen Ortschaften in meiner Gegend etwas Liebe zukommen lassen wollte. Das manuelle Absuchen der Karte war irgendwann zu nervig…
Optimierungs-Potenzial ist noch genug da. Besonders Orte, die zwar mit landuse erfasst sind aber kein place-node besitzen fallen aktuell komplett unter den Tisch.
Harald Hartmann 于 2017年08月 9日 10:26 的评论
Hier noch zwei Querverweise aus der Vergangenheit, welche meiner Meinung thematisch dazu passen:
derstefan 于 2017年12月 4日 22:13 的评论
Sehr nützlich, vielen Dank für die vorformulierte Overpass-Abfrage!