Matt, I have had no problem reproducing your bug. Could you file a ticket on th issue. The following change fixes the bug, but I need a ticket to push the fix back into the source tree.
Thanks! Best regards, [EMAIL PROTECTED] svn diff Index: nitfdataset.cpp =================================================================== --- nitfdataset.cpp (revision 15371) +++ nitfdataset.cpp (working copy) @@ -458,7 +458,7 @@ if( psImage->bNoDataSet ) return psImage->nNoDataValue; else - return -1e10; + return GDALPamRasterBand::GetNoDataValue( pbSuccess ); } /************************************************************************/ On Tue, Sep 30, 2008 at 8:27 PM, Matt Klaric <[EMAIL PROTECTED]> wrote: > I'm attempting to set the nodata value on an NITF image and then > subsequently read this nodata value back out of the image. However this > read fails to find the newly set nodata value. See the attached source > code and an example image. You can see that the nodata value is being > set for (the first band of) the image in the PAM XML file. > > Any ideas? > > FYI....I'm using version 1.5.2. > > Thanks, > Matt Klaric > > > _______________________________________________ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/gdal-dev > -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, [EMAIL PROTECTED] light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev