Use geometry in spatial relationships - DuckDB #151
Unanswered
callumscoby
asked this question in
Places
Replies: 1 comment 3 replies
-
same error when i export a duckdb table with geometry into parquet, then read it back and failed to convert the geometry blob into geometry data type |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I've extracted all the points from the recent beta.0 places release using the duckdb client in Python, storing it as a number of local Parquet files:
I now need to query these Parquet files for a given country, and ensure that all the POI are within a polygon of the countries boundaries.
In these Parquet files, the geometries look like this:
When I try to use them in ST_Within, I get the error that it doesn't support BLOB geometries:
So I try to convert them to geometries using ST_GeomFromWKB, which gives this error when testing the conversion:
I'm really at a loss of how to get the points converted to the GEOMETRY type, or how to get them to work in the ST_Within - any help or advice would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions