rws_export_gpkg: Export all spatial datasets in a database as geopackages.

View source: R/export.R

rws_export_gpkgR Documentation

Export all spatial datasets in a database as geopackages.

Description

Export all spatial datasets in a database as geopackages.

Usage

rws_export_gpkg(conn, dir, overwrite = FALSE)

Arguments

conn

A SQLiteConnection to a database.

dir

A string of the path to the directory to save the geopackages in.

overwrite

A flag specifying whether to overwrite existing geopackages.

Details

If more than one spatial column is present in a table, a separate geopackage will be exported for each, and the other spatial columns will be dropped.

Value

An invisible named vector of the file names and new file names saved.


poissonconsulting/readwritesqlite documentation built on Oct. 17, 2022, 7:20 p.m.