0

I have DTM data in the format of .tif and I need to export this as CSV or ASC for point cloud data input into Leapfrog.

I've read other walk-thrus that are outdated now (2014/2017) that came close to the solution, but sadly QGIS has been updated since that time and I need a current solution.

2 Answers 2

1

If you export the raster file to XYZ format in QGIS, it is in fact the CSV (ASCII Gridded - see: https://gdal.org/drivers/raster/xyz.html) - each line contains X, Y and the Z value separated by space (or comma if you want). Right click on the raster item in list of layers, choose Export, Save as... Alternatively MyGeodata Converter can export it to XYZ online.

2
  • Or menu Raster -> Conversion -> Translate -> Save to file -> XYZ
    – Tonny
    Jun 1 at 6:21
  • Tried this... not an option on current QGIS version. Thanks. The answer below wins it! "Processing Toolbox", woot! Jun 2 at 14:29
0

In the Processing Toolbox, GDAL >> gdal2xyz. enter image description here

3
  • You win! This is the solution! Thanks so much! Jun 2 at 14:29
  • However, the gdal2xyz did not write the Z values in the exported csv file, just a bunch of -10000 values. Not sure how to fix that. Jun 2 at 15:28
  • What was the elevation range when you drag-n-dropped the tif into QGIS?
    – Pointdump
    Jun 2 at 17:00

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.