Skip to content

Support for GeoParquet #79

Answered by Maxxen
bfgdigital asked this question in Q&A
May 16, 2023 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Hi!
Improving the geo support in our parquet reader/writer is something were looking into, but for now you should be able to work around it. Since geoparquet stores geometry as "WKB" in binary columns with some special metadata (which we dont read yet), you can just convert the blob data to duckdb geometry using the ST_GeomFromWKB(BLOB) function.

Since you mentioned postgis, you could also try to use the duckdb postgres scanner to scan postgres tables directly, using the ST_GeomAsWKB function on the postgis side and then ST_GeomFromWKB on the duckdb side to convert the geometry columns, skipping the parquet step entirely.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@bfgdigital
Comment options

@Maxxen
Comment options

@mtravis
Comment options

Answer selected by Maxxen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants