2

I'm trying to get a Height Profile for a certain route using the profile tool (terrain profile). Does anyone know how i can get the slope in percent and in degrees in the table of the profile tool so that i can export it?

3 Answers 3

4

At 3.8.3, here's what works for me:

I have a raster DEM and a vector point shapefile (the point shapefile does not have elevation values in its attribute table). I want to create an slope profile that follows the point shapefile, utilizing the underlying DEM elevation values:

  1. Start the Profile tool.
  2. Click the DEM in the QGIS Table of Contents.
  3. In the Profile Tool, click the Add Layer button. The highlighted DEM automatically appears in the tool.
  4. Click the vector point shapefile in the QGIS TOC.
  5. In the Profile Tool > Options pane, click the drop-down and select Selected Layer. The elevation profile is displayed in the Tool's graph.
  6. Click the dropdown in the tool's lower-left corner and select Slope (%) or Slope(o). Voila! The slope profile is now displayed, as shown here:

enter image description here

Note: Resorting the shapefile points in a different order had no effect on the profile graph display. From this, it appears that the Profile Tool displays the elevation graph in the order that the points were originally digitized.

1
  • Adding to Stu Smith's explanation, the Profile tool also lets you: - pan inside the graphic (click & drag); - zoom inside the graphic (mouse scroll); - see on the map the location of the cross-hair in the graphic along the route; - Generate a table of heights along the track (Table tab).
    – Albert
    Apr 23, 2020 at 17:26
2

I do not know if Profile Tool(Terrain Profile) has the ability to export slope data (although it does show slope as a graph).

There are several tools/plugins for QGIS which can calculate DEM profiles... I would suggest qProf plugin.

To export slope, calculate profile first, then go to Export tab and select topographic profile data. In the output csv you will find dirslop column (directional slope) among others.

2
  • Profile tool only exports point elevation data XYZ (to clipboard or a points layer), but not slope (but you can add that yourself). Your way sounds easier!
    – Steven Kay
    Aug 10, 2018 at 16:33
  • Thanks @StevenKay Calculating directional slope from xyz requires mathematical skill (head-scratching...) so I've given up quickly.
    – Kazuhito
    Aug 10, 2018 at 21:23
0

You could copy the data to clip board from table tab (with or without coordinates). And paste it in text or CSV format as your wish.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.