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

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.

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

if (FALSE) {
gpkg_file <- '~/basisbasins.gpkg'
bb_readgermanyshape(file = gpkg_file, name = 'basins_germany')

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