powered by
applies a line to a raster and returns the position of the maximum value
line_maxpos(dem, line)
raster object
sp object
returns the coordinate of the maximum value of any underlying raster object along a line of interest