View source: R/bb_readgermanyshape.R
bb_readgermanyshape | R Documentation |
sf
Read basin shapes with all primary basins with sf
package and stores as global variable defined by name
.
bb_readgermanyshape(file = NULL, name = "shape", quiet = FALSE)
file |
Location of the shapefile or geopackage file |
name |
Variable name that the shapefile should be assigned to. |
quiet |
logical; suppress info from |
The original file is the primaray basin file (Basiseinzugsgebiete) from BfG from the year 2021. Projection is WGS84 (EPSG: 4326).
Loads the basins shape and stores it in a variable given by name
.
The sf
package will generate some printouts or warnings during processing.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.