R/karim.R
maxpos_on_line.Rd
applies a line to a raster and returns the position of the maximum value
maxpos_on_line(dem, line)
raster object
sp object
if (FALSE) {
## load DEM/DSM
dem <- terra::rast(system.file("extdata", "mrbiko.tif", package = "uavRmp"))
## generate extraction line object
line <- sp_line(c(8.66821,8.68212),c(50.83939,50.83267),ID="Highest Position",runDir=runDir)
## extract highest position
maxpos_on_line(dem,line)
}