-
Hi! You have an example of how to write data to a GeoJSON file. Would it be possible to add an example of how to write data to a GeoParquet file? Thank you for your awesome work. 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
As of DuckDB 1.1 (though use 1.1.1 as it got a bug fix that may help) if you have the spatial extension on (
You can set the compression easily, zstd works great for spatial data (brotli gets even more compressed, but the compression in duckdb seems to take a good bit longer):
|
Beta Was this translation helpful? Give feedback.
As of DuckDB 1.1 (though use 1.1.1 as it got a bug fix that may help) if you have the spatial extension on (
install spatial; load spatial
) and your data is geometries then you just need to use the normal Parquet output:You can set the compression easily, zstd works great for spatial data (brotli gets even more compressed, but the compression in duckdb seems to take a good bit longer):