Description Usage Arguments Details Value Examples
Download and load digital elevation data of Berlin
1 2 3 4 5 6 7 |
x |
The target area for which dem data are to be downloaded.
Either created with |
directory |
A string giving the path to the directory where downloaded .zip files should be saved to |
read |
Logical. Should the downloaded data be read into R? |
output_format |
Character specifying the output format.
Default "raster" will return output as |
merge_output |
Logical. If |
This function will identify targeted tiles of the 1m resolution digital elevation model of Berlin that are distributed by the Geoportal Berlin ("Geoportal Berlin / ATKRIS(R) DGM (1m-Rasterweite)" https://www.govdata.de/dl-de/by-2-0) and download them into a specified directory (default is "BEMdata/"). It will then attempt to load all downloaded data into R and return it in a meaningful format that should make further processing easy.
Either a raster::`Raster-class`
, a
tibble::`tibble-package`
or a list
of any of those things,
depending on output_format
. If read = FALSE
, x
is returned invisible.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Not run:
my_area_of_interest <- bem_target(
xmin = 384000,
xmax = 386000,
ymin = 5806000,
ymax = 5808000)
# Careful! This will kick of ~ 100 MB download!
result <- bem_data(my_area_of_interest)
# In this case the result can be examined e.g. with the help of
# raster::plot(result)
# or
# mapview::mapview(result)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.