I have a DEM .tif data. I am trying to convert it with gdal2xyz to ASCII data.

The result is always wrong. X and Y values are correct but Z value is wrong.

On the next image below, you can see the parameters. I changed even the band but it did not help. Any suggestions?

I am working with EPSG: 31468 | DHDN / 3-degree Gauss-Kruger zone 4.

enter image description here

enter image description here

You can find the result (CSV-data) in the next image:

enter image description here

  • Which projection is that? – Taras Feb 22 '19 at 9:32
  • the projection I took from Meta data :+proj=tmerc +lat_0=0 +lon_0=12 +k=1 +x_0=4500000 +y_0=0 +ellps=bessel +towgs84=598.1,73.7,418.2,0.202,0.045,-2.455,6.7 +units=m +no_defs – Mohamad Reza Salehi Sadaghiani Feb 22 '19 at 9:37
  • 1
    can you add gdalinfo results on the file – Ian Turton Feb 22 '19 at 9:39
  • Have you tried transforming the DEM to EPSG:25832 (UTM32N)? – Erik Feb 22 '19 at 9:42
  • I transformed the DEM to UTM32N projection but it did not help. – Mohamad Reza Salehi Sadaghiani Feb 22 '19 at 10:21

Your Answer

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

Browse other questions tagged or ask your own question.