So I have a line that is basically drawn from two points. A starting point and an end point. It looks like this:
I then densify the line by count and set the value to e.g. 50
Then I explode the line so that I get one feature (row) per vertex (I am not sure if that step is a good idea)
And then I do not know how to continue. My first Idea was to use the profiles from lines tool from SAGA. It does work and creates a point for each cell (actually the densifying might be unnecessary too) which holds the raster value. I also added the field
rn for the row number.
However, when I then run the
points to path tool, the height information gets lost.
Another idea was to simply use the
sample raster tool for the exploded line. However, I cannot use the line as vector layer input for sampling the raster values.
Anybody has an idea on how I can output a line that for each vertex has the height information from the raster?