Skip to content

Support for duckspatial - #221

Open
Cidree wants to merge 6 commits into
walkerke:mainfrom
Cidree:feat/duckspatial
Open

Cidree wants to merge 6 commits into
walkerke:mainfrom
Cidree:feat/duckspatial

Conversation

@Cidree

@Cidree Cidree commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

This PR is related to #213.

Description

  • Adds duckspatial (>=1.2.0) in Suggests.
  • Support for direct mapping of duckspatial_df objects usng ddbs_as_geojson(). Implemented in:
    • add_source(): and all downstream functions (e.g. add_fill_layer())
    • add_markers()
    • set_source()
  • Support for duckspatial_df bounds:
    • mapboxgl(bounds)
    • maplibre(bounds)
    • fit_bounds()
  • Ensures that duckspatial 1.2.0 is installed when the input is a duckspatial_df with the internal helper check_duckspatial().
  • Updated NEWS.md
  • Updated documentation
  • devtools::test() results: [ FAIL 0 | WARN 0 | SKIP 0 | PASS 445 ]

Cidree and others added 6 commits June 26, 2026 19:57
Add support for `duckspatial_df` objects in `add_source()`, `add_layer()`,
all specific layer functions, `fit_bounds()`, `maplibre()`, `mapboxgl()`,
`set_source()`, and `add_markers()`. Introduces a `ddbs_ensure_wgs84()`
helper in utils.R to centralise CRS validation and reprojection. Update
docs and DESCRIPTION imports accordingly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@walkerke

Copy link
Copy Markdown
Owner

this looks fantastic. will review!

This branch has not been deployed

No deployments
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.

2 participants