Spatial Data Operations for Database-Backed Geometries
Overview
Provides database-backed spatial geometry classes and methods for working with vector spatial data in 'DuckDB'. The package supports loading, converting, querying, joining, and measuring spatial geometries through familiar 'sf'-style interfaces while keeping geometry columns lazy inside the database. It integrates with 'dbProject' to preserve database paths, live connections, and spatial table metadata across interactive sessions. The package follows the Simple Features framework described by Pebesma (2018) doi:10.32614/RJ-2018-009 and uses DuckDB's spatial extension https://duckdb.org/docs/stable/core_extensions/spatial/overview.html.
Bug fixes
- Skip DuckDB spatial vignette chunks on CRAN. Chunks are now evaluated only when
NOT_CRANis"true", fixing vignette re-building on platforms where DuckDB extension loading is disabled.
Documentation
- Add
\usagesections to thest_area(),st_as_text(),st_buffer(),st_centroid(),st_length(),st_perimeter()andst_simplify()method topics and document their actual arguments.
From NEWS.md in the release
Install
Health
- OK13 OK2026-10-17
- NOTE11 OK, 2 NOTE2026-10-15
- ERROR6 OK, 1 ERROR2026-05-28
Documentation
- Help pages
- 30 (3 internal)
- Examples that run
- 40%8 run in a plain check (7 of them under a condition) · 12 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 91%
- Documented parameters
- 93%
- Return-value docs
- 100%
- Help pages citing references
- 0%
- Class Structure HTML
- Getting Started HTML
- Spatial Operations HTML
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
PRs over time
8 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/dbverse-org/dbspatial-r on 2026-10-11.
GitHub Pages site last deployed 2026-06-23 · The repository has a site deploy workflow
pkgdown site last built 2026-06-23, before release 0.1.3 (2026-10-14)
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2026-04-29Commits: at least 11 crediting it in the message
Dependencies
Code & Tests
People & History
Pick two releases to compare their code metrics.
Package metadata
- First published
- 2026-05-27
- Total releases
- 3 / 1 yrs
- License
- GPL-3 | MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 111 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("dbSpatial")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.