0

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.

PolyGeo
  • 65,136
  • 29
  • 109
  • 338

2 Answers2

1

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.

  1. Take your surface (DEM) and multiply it by "-1". The purpose of doing this is to invert the elevations of the raster.
  2. Take this new surface and run it through the hydrological tools in GRASS / SAGA to generate a river vector file. I am unfamiliar with the QGIS / GRASS methodology to do this, but simplistically in ESRI software you calculate flow direction, flow accumulation and convert to river.
  3. This derived river file could be seen as the ridge-lines of your mountain range. Buffer it by 5m to make a polygon.

With the new polygon layer you can try the methodology provided in the link in your question.

Keagan Allan
  • 3,706
  • 1
  • 15
  • 25
0

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):

enter image description here

With your DEM as active layer, click at plugin icon and add raster layer with "selection" in "Selected polyline". It looks as following image:

enter image description here

Afterward, select line layer as active and click in whatever point of Map Canvas to get some similar to following image:

enter image description here

Now, you can use your own criterion for selecting how many mountains you observe in generated profile.

xunilk
  • 29,891
  • 4
  • 41
  • 80