I do have a line layer containing route segments (input layer). The routes as well as the segments have different lengths. I also have a DEM for the height information.
Now I need to know the minimum and maximum height of each segment to calculate the slope of the segment.
What I've tried so far:
- converted my line layer to point layer using plugin "QChainage", distance set to 10m
- Used the "Drape" tool from processing toolbox to calculate height (z value)
- Added geometry info using "Add geometry attributes" (now I do have my zcoord)
- "Join attributes by nearest" to get the route and segment info on each point ("Join attribute by location" did not work, I don't know why)
maximum("zcoord", 'segment_id')did not work to get the maximum height value for each segment
What I want to have as a result: I'd like to add an attribute
"min" to my input layer.
Does someone have a simple and working solution?