bb_readgermanyshape: Reads germanyshape with 'sf'

View source: R/bb_readgermanyshape.R

bb_readgermanyshapeR Documentation

Reads germanyshape with sf

Description

Read basin shapes with all primary basins with sf package and stores as global variable defined by name.

Usage

bb_readgermanyshape(file = NULL, name = "shape", quiet = FALSE)

Arguments

file

Location of the shapefile or geopackage file

name

Variable name that the shapefile should be assigned to.

quiet

logical; suppress info from sf package on name, driver, size and spatial reference etc.

Details

The original file is the primaray basin file (Basiseinzugsgebiete) from BfG from the year 2021. Projection is WGS84 (EPSG: 4326).

Value

Loads the basins shape and stores it in a variable given by name. The sf package will generate some printouts or warnings during processing.

Examples

## Not run: 
gpkg_file <- '~/basisbasins.gpkg'
bb_readgermanyshape(file = gpkg_file, name = 'basins_germany')

#wrapper for this:
basins_germany <- sf::st_read('~/basisbasins.gpkg')

## End(Not run)

modche/basinbindr documentation built on Feb. 4, 2023, 10:35 p.m.