[Gdal-dev] CreateCopy does not copy the NoData value info

Frank Warmerdam warmerdam at pobox.com
Fri Mar 24 10:45:24 EST 2006


Julien Fiore wrote:
> Dear gdal users,
> 
> I'm using Python and gdal to process raster data.
> I open the input raster (an Arc/Info Binary Grid (.adf)) and use driver.CreateCopy to
> create the output raster (a GeoTIFF). Everything works except that the resulting GeoTIFF
> is not aware of the NoData value, which was specified in the input file. I tried to
> specify it with the band.SetNoDataValue command but it does not change anything.
> 
> Do you know how to resolve this problem ? 
> Any help would be very welcome.

Julien,

I tried a translation from Arc/Info Binary Grid to GeoTIFF just now and it
preserved the nodata value.  How did you verify that the nodata value was
missing in the GeoTIFF?  What version of GDAL are you using?

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGF, http://osgeo.org




More information about the Gdal-dev mailing list