Skip to contents

Get difference between DEM raster and elevation column in an sfc

Usage

get_elevation_difference(
  df,
  dem_src,
  elev_field = elevation_gps,
  geom_field = geom,
  abs = TRUE
)

Arguments

df

spatial datagram with elevation column

dem_src

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

elev_field

Existing elevation column in `df`

geom_field

name of geometry column in df

abs

If true, use absolute difference