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