Filippo,

What is the format of that raster file ? Can you share a link to the dataset ? 
or the output of gdalinfo at the very least

I'd note that -128 can only be considered a valid value for a 8bit raster if 
the metadata item PIXELTYPE at band level is set to SIGNEDBYTE 
(IMAGE_STRUCTURE metadata domain).

Best regards,

Even

Le vendredi 06 août 2010 18:08:56, Filippo Corò a écrit :
> Hi List,
> 
> I have a problem with the function GetNoDataValue () of GDAL 1.6.2 ver. I
> use some raster where the nodatavalue is equal to -128 and the pixel depth
> is 8bit. Opening the raster with the following code (with pydev  end
> python 2.6):
> 
> # Get the bands and block sizes
> primoBand primoDs.GetRasterBand = (1)
> noval primoBand.GetNoDataValue = ()
> 
> Get noval = 0.0 and not -128 as I expected.
> Is there any option I can use to solve the problem?
> 
> Thanks in Advance
> 
> Greetings
> Filippo Corò
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to