rennt da ins Limit.. obwohl der Bereich ganz klein ist..
Gruß Miche
Edit:
Code:
{{data:sql,server=https://postpass.geofabrik.de/api/0.2/}}
SELECT tags, geom
FROM postpass_pointlinepolygon
WHERE tags ? 'historic'
OR tags->>'amenity'='place_of_worship'
OR tags->>'geological' = 'palaeontological_site'
AND geom && {{bbox}}
Genaue Fehlermeldung:
Während des Ausführung der Overpass Query ist ein Fehler aufgetreten! Die Overpass API gab folgende Meldung zurück:
pq: total size of jsonb array elements exceeds the maximum of 268435455 bytes pq: total size of jsonb array elements exceeds the maximum of 268435455 bytes
deine SQL-Query hat ein Problem mit “operator precedence”. AND bindet stärker als OR. Das ist wie bei Multiplikation und Addition. Deswegen brauchst du da Klammern: (a+b+c) * d statt a + b + c*d
SELECT tags, geom
FROM postpass_pointlinepolygon
WHERE
( tags ? 'historic'
OR tags->>'amenity'='place_of_worship'
OR tags->>'geological' = 'palaeontological_site'
)
AND geom && {{bbox}}
Ohne Klammern liest der SQL-Interpreter das als:
( tags ? 'historic' ) OR
( tags->>'amenity'='place_of_worship' ) OR
( tags->>'geological' = 'palaeontological_site' AND geom && {{bbox}} )
und dann wirkt die Beschränkung auf die bbox nur noch für den letztem Term.
Schwupps suchst du nach allen historic tags und place_of_worships weltweit!