get_terrain: Get terrain data for an AOI (Countries)

View source: R/terrain_map.R

get_terrainR Documentation

Get terrain data for an AOI (Countries)

Description

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

## 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)


USAID-OHA-SI/gisr documentation built on Feb. 10, 2024, 8:55 p.m.