extract_raster | R Documentation |
Extract raster data for an AOI (Countries)
extract_raster(countries, ras, mask = FALSE, buffer = 0.1)
countries |
List of the country names or sf object |
ras |
RasterLayer or Path to raster file |
mask |
Should the extracted data match the exact boundary limits? |
buffer |
Extend AOI extent by x |
spdf spatial dataframe
## Not run:
library(gisr)
library(sf)
get_terrain(countries = list("Zambia"))
get_terrain(countries = list("Zambia"), mask = TRUE)
get_terrain(countries = list("Zambia"), buffer = .5, terr = "../../HDX_Data")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.