The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

Getting Started

library(dbSpatial)

Introduction

This vignette demonstrates how to use the {dbSpatial} package to create a DuckDB database with spatial points and polygons starting from various data sources.

All code chunks below are evaluated only when the duckdb package is available in the check environment.

Creating a DuckDB connection

# create db connection in memory
duckdb_conn = DBI::dbConnect(duckdb::duckdb(), ":memory:")
DBI::dbExecute(duckdb_conn, "SET threads = 1")
#> [1] 0

Reading in spatial data from various sources

From data.frames

From .csv file

From {terra} objects: SpatVector

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.