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.
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.
# test data
test_data = data.frame(x = 1:10, y = 1:10, id = 1:10)
# write to file
test_file <- tempfile(fileext = ".csv")
write.csv(test_data, test_file, row.names = FALSE)
# load file in db
a <- dbSpatial(conn = duckdb_conn,
name = "test_points",
value = test_file,
x_colName = "x",
y_colName = "y",
overwrite = TRUE)
aThese 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.