Description Format Construction Methods Examples
tbd.
R6::R6Class object.
1 | GDZ <- geodatenzentrum$new(local_file_root)
|
GDZ
: geodatenzentrum
object.
local_file_root
: Path to sync remote data sources to.
$sync(source)
Syncs a remote data source to the local_file_root
. Available data sources are listed in $sources
.
$files(collection)
Lists all synced files for a collection/data source.
$shp_layers(collection)
Lists all available shp layers for a collection/data source.
$describe(collection)
Returns information on a collection/data source, e.g. documentation, citation and license.'
$read_sf(collection, layer)
Returns an object of class sf
for a layer of a collection/data source.
$make_sp(sf)
Retuns an object of class Spatial
for a given object of class sf
.
$make_df(sp)
Fortifies a given object of class Spatial
to a data.frame
.
$fortify(collection, layer)
Combines $read_sf()
, $make_sp()
and $make_df()
and returns a fortified data.frame
for a given layer of a collection/data source.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Not run:
library(geodatenzentrum)
# Create an instance of class geodatenzentrum
GDZ <- geodatenzentrum$new(local_file_root="./geodatenzentrum")
# List available data sources
GDZ$sources
# Sync a data source
GDZ$sync(source = "VG250")
# List available shp layers for the collection
GDZ$shp_layers(collection = "VG250")
# Fortify a shp layer to a data.frame
GDZ$fortify(collection = "VG250", layer = "VG250_KRS")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.