5

I'm a bit new at this. I have a DEM map (.tif) of an area in QGIS. I know that I can transform it to a text file (.asc) with raster -> translate.

However, what I need is only a certain cross-section of the area. So I want to choose a straight line, with specific coordinates, and get an .asc file containing the data of only the points along this line.

  • I think what you need is a keyword "profile" to search within this GIS SE. With the same keyword you can find nice plugins at Plugins Repository, too. – Kazuhito Nov 28 '16 at 19:38
1

As the comment above mentions, there is a Profile Tool plugin available in QGIS, which allows you to plot a line across a raster (in this case DTM). See below to install the plugin:

enter image description here

It will return a graph of the terrain profile as well as a Table with the elevation values along that line (which you can copy to a clipboard including the coordinates) and then paste to a text file. See example below:

enter image description here

You can also export the corresponding graph to a PDF or PNG:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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