Skip to contents

Get terrain data for an AOI (Countries)

Usage

get_terrain(countries, terr, mask = FALSE, buffer = 0.1)

Arguments

countries

List of the country names or sf object

terr

RasterLayer or Path to terrain raster file

mask

Should the extracted data match the exact boundary limits?

buffer

Extend AOI extent by x

Value

      spdf spatial dataframe

Note

get_terrain() will evantually be replaced by extract_raster()

Examples

if (FALSE) {
 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")
}