generate.dem: turn elevation raster .tif files into a DEM

View source: R/generate.dem.R

generate.demR Documentation

turn elevation raster .tif files into a DEM

Description

generate.dem converts elevation raster .tif files into a DEM ready to use with overlay.relief

Usage

generate.dem(
  map.data,
  raster.files,
  coordinate.system = NULL,
  aggregate = NULL
)

Arguments

map.data

An sf data frame with geometries of type POLYGON or MULTIPOLYGON and associated attributes.

raster.files

A vector of .tif elevation raster file names you wish to turn into a DEM. If empty the function will pull raster data for the map.data bounding box from AWS Terrain Tiles.

coordinate.system

EPSG code of the projection you wish to use. Default NULL: if crs of map.data and the generated DEM do not match the latter will be projected to the crs of the former.

aggregate

factor to aggregate the generated DEM by. Default NULL.

Value

A raster object.


till-tietz/rrelief documentation built on Sept. 5, 2022, 7:41 p.m.