Converts a stream flowline to a route using the km to mouth parameter and creates an sf object stream profile points.

flowline_points(flowline, dem, station_distance)

Arguments

flowline

sf object; A flowline object.

dem

terra SpatRast object; A DEM.

station_distance

numeric; Disired distance between the flowline_points (units: meters)

Value

an sf object of type point