Re: [gdal-dev] why do I get a floating point nodata value from a byte raster?

2014-09-01 Thread Richard Sharp
On Fri, Aug 29, 2014 at 10:34 AM, Even Rouault wrote: > Le jeudi 28 août 2014 23:32:38, Richard Sharp a écrit : > > I have a byte GTiff dataset that has a nodata value of 0 according to > QGIS. > > Well, I've just created such a file, and with QGIS 1.8, the G

[gdal-dev] why do I get a floating point nodata value from a byte raster?

2014-08-28 Thread Richard Sharp
I have a byte GTiff dataset that has a nodata value of 0 according to QGIS. However, when I load it using the gdal python API, I get this: >>> ds= gdal.Open('cdl10lu83.tif') >>> band=ds.GetRasterBand(1) >>> band.GetNoDataValue() -3.4028230607370965e+38 Also when I run `gdalinfo` I see the same n