[Gdal-dev] Strange NoData value from a MrSID image

Peng Gao pgao at esri.com
Wed Jun 22 01:21:48 EDT 2005


GDAL returns a strange NoData value (-1.2197742815800439e-012) from 
one of my mrSID images. The image is 8-bit and has 3 bands.


MrSIDRasterBand::MrSIDRasterBand( MrSIDDataset *poDS, int nBand )
{
    ...

/* --------------------------------------------------------------------
*/
/*      Set NoData values.
*/
/* --------------------------------------------------------------------
*/
     if ( poDS->poNDPixel )
     {
	 dfNoDataValue = poDS->poNDPixel->getSampleValueFloat32( nBand -
1 );
	 bNoDataSet = TRUE;
     }
     else
     {
	 dfNoDataValue = 0.0;
       bNoDataSet = FALSE;
     }
}



More information about the Gdal-dev mailing list