generate.dem | R Documentation |
generate.dem converts elevation raster .tif files into a DEM ready to use with overlay.relief
generate.dem( map.data, raster.files, coordinate.system = NULL, aggregate = NULL )
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. |
A raster object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.