3

I have download a tiff file with elevation from http://srtm.csi.cgiar.org/SELECTION/inputCoord.asp and I try to export in file text or Excel the coordinates and the elevation and I don't know how to export this data in text file.

1 Answer 1

2

Using QGIS select Raster/Conversion/Translate (Convert format) ... from the menu. Select the ASCII Gridded XYZ file type and set the output file. It will execute a gdal_translate command as you can see it in the dialog. gdal_translate -of XYZ input.tif output.xyz

Note: it will use the raster value of the first band as Z value if you have a multiband image (e.g. RGB).

3
  • I cant find the Translate in qgis postimg.org/image/oe5h1avp9
    – vagelis
    Commented Aug 25, 2015 at 19:16
  • Enable GDALTools plugin in the Plugins/Manage and Install plugins dialog.
    – Zoltan
    Commented Aug 26, 2015 at 6:06
  • The final step, then, is to import the .xyz file into Excel. Excel treats the xyz file as a text file and uses the import wizard to allow you to set the delimiters. It seems obvious now, but it took me a little time to work that out.
    – Johanna
    Commented Dec 14, 2015 at 21:56

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.