download_landcover | R Documentation |
Download the Land Cover 100 m from the Copernicus Global Land Service and copy it to its corresponding folder.
download_landcover(
mainPath,
country,
alwaysDownload = FALSE,
mostRecent = FALSE
)
mainPath |
character; the parent directory of the country folder |
country |
character; the country folder name |
alwaysDownload |
logical; should the raster always be downloaded, even if it has already been downloaded? If FALSE and if the raster has already been downloaded the user is interactively asked whether they want to download it again or not. |
mostRecent |
logical; should the most recent boundary shapefile be selected to define the required landcover tiles? If FALSE and if there are multiple available inputs, the user is interactively asked to select the input based on file creation time. |
The function downloads the landcover tiles from the AWS cloud and determines the file names based on the extent of the boundary shapefile. If there are multiple tiles, it produces a mosaic.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.