OpenStreetMap 로고 OpenStreetMap

Ortschaften ohne Gebäude finden

milet님이 German (Deutsch)로 2017년 8월 8일에 게시함.

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; }
}}
이메일 아이콘 Bluesky 아이콘 Facebook 아이콘 LinkedIn 아이콘 마스토돈 아이콘 텔레그램 아이콘 X 아이콘

토론

2017년 8월 8일 14:21Harald Hartmann님의 의견

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…

2017년 8월 8일 16:18imagico님의 의견

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

2017년 8월 9일 08:09milet님의 의견

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.

2017년 8월 9일 10:26Harald Hartmann님의 의견

Hier noch zwei Querverweise aus der Vergangenheit, welche meiner Meinung thematisch dazu passen:

2017년 12월 4일 22:13derstefan님의 의견

Sehr nützlich, vielen Dank für die vorformulierte Overpass-Abfrage!

댓글을 남기려면 로그인하세요