3.2.12. Extract elevations from DEM

The extraction of elevations from DEM. Returns CSV with coordinates and altitude.

Inputs:

  • ZIP-compressed CSV - CSV table with coordinates of points. Delimiter should be comma. Corrdinates are floating values. File should not have spaces and should contain only latin symbols. How to prepare the file in QGIS.

  • Latitude - fieldname for Latitude column. Case-sensitive.

  • Longitude - fieldname for Lonitude column. Case-sensitive.

  • Elevation dataset - select one of the following:

    • Copernicus

    • ALOS - ALOS World 3D has resolution of 30 meters

    • MERITDEM

    • GEBCO - resolution is 15 sec (about 500 meters).

Outputs:

  • ZIP-compressed CSV-file with coordinates and elevation values for the points.

3.2.12.1. How to prepare data

To save a point layer as a CSV file with coordinates in QGIS, go to Layer –> Save as. In the Format field select “Comma separated values.

In the Layer options section select for the GEOMETRY field the option AS_XY. The resulting file will have longitude in the X column and latitude in Y column.

../../_images/save_as_cvs_coord_en.png

Pic. 3.11. Exporting point layer as CSV

Launch the tool: https://toolbox.nextgis.com/t/demInPoints

Try it out using our sample:

Download input dataset to test the instrument. Step-by-step instructions included.

Get the output to additionally check the results.