[gdal-dev] Removing nodata values

Frank Warmerdam warmerdam at pobox.com
Mon Dec 29 23:38:07 EST 2008

Seth Price wrote:
> How can one remove the nodata values from a GeoTIFF? I'm working with a 3
> band RGB image.
> I find many instructions on how to add the values, but none on how to
> remove them.


Unfortunately there isn't a particularly direct way of accomplishing this.
You could do:

   gdal_translate -of VRT your.tif work.vrt

Then manually edit work.vrt and remove the line(s) with the NoDataValue
tags.   Then convert back to geotiff.

   gdal_translate work.vrt fixed_your.tif

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    | Geospatial Programmer for Rent

More information about the gdal-dev mailing list