Skip to content

futureproofing for arrow/geoarrow support#121

Open
e-kotov wants to merge 3 commits intoCidree:devfrom
e-kotov:dev
Open

futureproofing for arrow/geoarrow support#121
e-kotov wants to merge 3 commits intoCidree:devfrom
e-kotov:dev

Conversation

@e-kotov
Copy link
Copy Markdown
Collaborator

@e-kotov e-kotov commented Apr 12, 2026

this PR prepares the package to be compatible with https://github.com/r-spatial/geoarrowDeckglLayers and recently released https://r-spatial.github.io/geoarrowWidget/index.html / https://github.com/r-spatial/geoarrowWidget (FYI @tim-salabim #38 )

For now, we can do simple things like

x <- ddbs_open_dataset(system.file("spatial/rivers.geojson", package = "duckspatial") )
arrow::write_parquet(x, "rivers.parquet")

e-kotov added 2 commits April 12, 2026 22:10
- Add as_nanoarrow_array_stream, infer_geoarrow_schema, and as_arrow_table S3 methods for duckspatial_df.
- Enable high-performance, zero-copy WKB streaming directly from DuckDB to Arrow/GeoArrow-compatible consumers.
- Implement 'native = TRUE' path using geoarrow Arrow-to-Arrow kernels for optimized native geometry layouts without sf materialization.
- Fix st_crs.duckspatial_df dispatch to correctly preserve SRID metadata.
- Improve CRS detection in get_geometry_type_duckdb for robust DuckDB table creation.
- Add comprehensive test suite for Arrow-native spatial pipeline.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant