geopackage | R Documentation |
geopackage
Constructorsgeopackage()
(alias gpkg()
) creates an S3 object of class geopackage
.
geopackage(x, ...)
## S3 method for class 'list'
geopackage(x, dsn = NULL, connect = FALSE, ...)
## S3 method for class 'missing'
geopackage(x, connect = FALSE, pattern = "Rgpkg", tmpdir = tempdir(), ...)
## S3 method for class 'SQLiteConnection'
geopackage(x, connect = FALSE, ...)
## S3 method for class 'geopackage'
geopackage(x, ...)
## S3 method for class 'character'
geopackage(x, connect = FALSE, ...)
gpkg(x, ...)
x |
list of SpatVectorProxy, SpatRaster, data.frame; or a character containing path to a GeoPackage file; or an SQLiteConnection to a GeoPackage. If missing, a temporary file with .gpkg extension is created in |
... |
Additional arguments [not currently used] |
dsn |
Path to GeoPackage File (may not exist) |
connect |
Connect to database and store connection in result? Default: |
pattern |
used only when |
tmpdir |
used only when |
Several geopackage()
methods are provided:
geopackage(x=<list>)
: creates a new GeoPackage object from a heterogeneous list of inputs
geopackage(x=<missing>)
: creates a new empty GeoPackage file in tmpdir
geopackage(x=<SQLiteConnection>)
: creates a GeoPackage object from an existing SQLite connection
geopackage(x=<character>)
: creates a GeoPackage object from a path to an existing GeoPackage file
A geopackage object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.