[gdal-dev] GDAL 1.8.0 misreads images with Type=Float32 as Type=Byte

Even Rouault even.rouault at mines-paris.org
Sun Jun 26 12:35:08 EDT 2011


Le dimanche 26 juin 2011 17:02:46, Greg Coats a écrit :
> GDAL 1.7.3, released 2010/11/10, for Mac OS X 10.6, acquired from
> http://www.kyngchaos.com/software:frameworks, properly reads geo
> referenced raster images of Type=Float32. For the example 468 MB image,
> gdalinfo properly reports Type=Float32, and Computed
> Min/Max=35.024,748.615.
> 
> GDAL 1.8.0, released 2011/01/12, for Mac OS X 10.6, acquired from
> http://www.kyngchaos.com/software:frameworks, improperly read geo
> referenced images of Type=Float32. For the example 468 MB image, gdalinfo
> improperly reports Type=Byte, and Computed Min/Max=0.000,255.000.
> 
> gregcoats $ source ~/programs/scripts/paths_gdal_173.sh
> gregcoats $ gdalinfo --version
> GDAL 1.7.3, released 2010/11/10
> gregcoats $ gdalinfo -mm floatn40w078_13.flt | tail -3
> Band 1 Block=10812x1 Type=Float32, ColorInterp=Undefined
>     Computed Min/Max=35.024,748.615
>   NoData Value=-9999
> 
> gregcoats $ source ~/programs/scripts/paths_gdal_180.sh
> gregcoats $ $gdalinfo --version
> GDAL 1.8.0, released 2011/01/12
> gregcoats $ gdalinfo -mm floatn40w078_13.flt | tail -3
> Band 1 Block=10812x1 Type=Byte, ColorInterp=Undefined
>     Computed Min/Max=0.000,255.000
>   NoData Value=-9999

You didn't mention the driver concerned by the issue, but from the file 
extension, it looks like its ESRI HDR. So this should be fixed in 1.8.1 by 
http://trac.osgeo.org/gdal/ticket/3933


More information about the gdal-dev mailing list