I am trying to get elevation graph with the Terrain profile tool on my GPS data and can't get it to work. I have GPX file from a drive. I got this imported in QGIS. I have elevation data for each point but when using the Terrain profile tool over this GPX file or the derived shape file, all I get is a flat graph. I have also tried converting my points shp to line shp file using the point to path in the toolbox but when doing so, I am loosing the elevation data Anybody can describe the steps to use effectively the point elevation data to create a profile graph?
Steps with the Profile Tool :
Open both the track and track_points in QGIS.
Open the Profile Tool plugin.
Select the point layer in the Layers Panel and click on Add Layer in the Profile Tool.
Choose the elevation field.
Select the track (line) layer in the Layers Panel.
Select selected layer in the Profile Tool in Options > Selection.
Wait and the plot will be created automatically.
The Profile Tool is great to use when you want to use a DEM as reference to trace profiles of polylines but with GPX files I always prefer to use qProf instead, at least on my computer the performances of the Profile Tool with big GPX files are really poor and QGIS crashes (but maybe I don't configure it right).
Since the two profile plugins you've tried aren't working very well, try this workaround.
The point of a profile tool in a GIS program is to combine two sources of geospatial data, one of which has the elevation and one which has the path (usually a DEM and a trail line).
But you have all the information you need in a single file, because your trail line has elevation data in the vertices. So you can make a profile in any graphing program. It's just a question of converting the GPX file to a compatible format.
Make the line vertices a separate layer, if they aren't already. Make sure the vertex layer has fields containing the following information:
- distance from start of path
- if you have multiple paths/trails in the same file, each trail should have a shared ID or name
Export the vertices as a CSV file and use any program with basic graphing capabilities, such as Excel or OpenOffice Calculator, to make a line graph.
- the distance from the start of the path is the X axis of the graph
- elevation is the Y axis of the graph
If you save the graph as an image or SVG, you can add it back into QGIS in several ways:
- add it to the print layout
- add it to the map canvas as an annotation
- add it to the attribute table using a field edit widget