View source: R/tile_download.R
tile_download | R Documentation |
Download requested tiles
tile_download(df_req, outdir = ".", unzip = TRUE, print_iter = TRUE, ...)
df_req |
a data frame obtained using the |
outdir |
(optional) name of the output directory; by default, files are saved in the working directory |
unzip |
TRUE (default) or FALSE, when TRUE the downloaded archive will be extracted and removed; only suitable for certain elevation data |
print_iter |
print the current iteration of all (logical, TRUE default) |
... |
additional argument for |
georeferenced tiles with properties (resolution, year, etc.) as specified in the input data frame
## Not run:
library(sf)
options(timeout = 600)
polygon_path = system.file("datasets/search_area.gpkg", package = "rgugik")
polygon = read_sf(polygon_path)
req_df = ortho_request(polygon)
tile_download(req_df[1, ]) # download the first image only
req_df = DEM_request(polygon)
tile_download(req_df[1, ]) # download the first DEM only
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.