geopackage {gpkg}R Documentation

geopackage Constructors

Description

geopackage Constructors

Usage

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, ...)

Arguments

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 tempdir.

...

Additional arguments [not currently used]

dsn

Path to GeoPackage File (may not exist)

connect

Connect to database and store connection in result? Default: FALSE

pattern

used only when x is missing (creating temporary file GeoPackage), passed to tempfile(); default "Rgpkg"

tmpdir

used only when x is missing (creating temporary file GeoPackage), passed to tempfile(); default tempdir()

Value

A geopackage object


[Package gpkg version 0.0.8 Index]