umap Daten filtern
-
umap Daten filtern · plennert (Gast) · 21.10.2020 10:53 · [flux]
Hallo,
ich versuche mich an einer Abfrage. Folgende funktioniert:
http://overpass-api.de/api/interpreter?data=[out:json][timeout:25];way["building"="construction"]({south},{west},{north},{east});(._;>;);out;
Wenn ich hinter way["building"="construction"] noch ["landuse"="construction"] ergänze, bekomme ich keine Auswertung geliefert.
Folgende über overpass-turbo erstellt und per copy an past eingefügt, nicht:
http://overpass-api.de/api/interpreter?data=[out:json][timeout:25];(node[~".*"~"construction"]({south},{west},{north},{east});way[~".*"~"construction"]({south},{west},{north},{east});relation[~".*"~"construction"]({south},{west},{north},{east}););out␣body;>;out␣skel␣qt;
Hat jemand hier eine Idee?
Gruss und Danke im vorraus.
Ralph- Re: umap Daten filtern · rainerU (Gast) · 21.10.2020 11:29 · [flux]
Das ist an sich keine Umap-Frage sondern eine Overpass-Frage. Umap verarbeitet nur die Ausgabe von Overpass.
plennert wrote:
http://overpass-api.de/api/interpreter?data=[out:json][timeout:25];way["building"="construction"]({south},{west},{north},{east});(._;>;);out;
Wenn ich hinter way["building"="construction"] noch ["landuse"="construction"] ergänze, bekomme ich keine Auswertung geliefert.
Aneinandergereihte Bedingungen werden UND-verknüpft. Und da es wohl keine Objekte gibt, die sowohl mit building=construction als auch mit landuse=construction getaggt sind, kommt ein leeres Ergebnis. Wenn man sowohl Gebäude als auch Landfächen haben will, muss man den gesamten Selektor zweimal einfügen, also: way["building"="construction"]({south},{west},{north},{east});way["landuse"="construction"]({south},{west},{north},{east});
Sicher kommen da noch irgendwelche Klammern hinzu oder es sind Semikolons zu viel oder zu wenig. Aber so ist das halt bei Overpass-QL 😉
- Re: umap Daten filtern · fx99 (Gast) · 21.10.2020 12:08 · [flux]
Probier das ganze erst einmal mit http://overpass-turbo.eu/ aus.
Da sieht man schneller, was Sache ist.