Hi,

Run:
gdalinfo input.tif -stats

See among other information:
...
Band 1 Block=1905x1 Type=Float32, ColorInterp=Gray
  Minimum=643.147, Maximum=927.145, Mean=735.006, StdDev=69.669
  NoData Value=-3.402823e+38
  Metadata:
    STATISTICS_MINIMUM=643.14666748047
    STATISTICS_MAXIMUM=927.14501953125
    STATISTICS_MEAN=735.00611216951
    STATISTICS_STDDEV=69.669350319879
    STATISTICS_VALID_PERCENT=48.23

It means that 100-48.23=51.77 percent of the pixels are nodata, and nodata 
pixels have a value -3.402823e+38.

You must just tell in your next processing steps that your .xyz file contain 
also nodata values, just like the original data.

-Jukka Rahkonen-



________________________________________
Lähettäjä: gdal-dev <gdal-dev-boun...@lists.osgeo.org> käyttäjän Marián Hadri 
via gdal-dev <gdal-dev@lists.osgeo.org> puolesta
Lähetetty: Maanantai 2. kesäkuuta 2025 11.37
Vastaanottaja: Javier Jimenez Shaw <j...@jimenezshaw.com>; 
gdal-dev@lists.osgeo.org <gdal-dev@lists.osgeo.org>
Aihe: [gdal-dev] WG: Wrong results during translate input.tif file to 
output.xyz file with gdal_translate.exe

Hallo, excuse me, this is the correct link 
...https://d.rib-software.com/iTWO_civil/gdaltmp/input.tifBest regards, Marian 
HadriMarián Hadri  DeveloperE-Mail  Marian.Hadri@rib-software.comTelefon  
+49(711)7873-339[X]RIB Software GmbH | Epplestraße 225, Haus 2, 70567 
Stuttgart, GermanySitz Stuttgart. Amtsgericht Stuttgart HRB 783426. 
Geschäftsführer: René Wolf, Tobias Hamacher. 
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to