Skip to contents

Add elevation column for an sf POINT collection.

Usage

get_elevation_dem(df, dem_src, units = "meters")

Arguments

df

an SFC of POINT geometries

dem_src

path to Digital Elevation Model file. This must be a raster file, usually a .tif

units

TODO: currently assumes all units are meters.

Examples

if (FALSE) {
dem_src = "USGS_13_n38w120_20210701.tif"
myDB = system.file("db/telemetry.gpkg", package = "beastr")
}