How can find the number of mountains that is crossed by a line between two points on a map?
I guess I might adapt the answer to Number of buildings between two points but I don't exactly know how.
How can find the number of mountains that is crossed by a line between two points on a map?
I guess I might adapt the answer to Number of buildings between two points but I don't exactly know how.
NOTE UNTESTED
This is a methodology I once came across once to identify ridgelines. It might be a good start.
An option would be to try this.
With the new polygon layer you can try the methodology provided in the link in your question.
You can use "Profile Tool" QGIS plugin. Install it as it is usual (Plugins -> Manage and Install Plugins).
Afterward, I tried plugin out with following layers (line shapefile and raster DEM):
With your DEM as active layer, click at plugin icon and add raster layer with "selection" in "Selected polyline". It looks as following image:
Afterward, select line layer as active and click in whatever point of Map Canvas to get some similar to following image:
Now, you can use your own criterion for selecting how many mountains you observe in generated profile.