[gdal-dev] write nodata value using using creation option

Rashad Kanavath mohammedrashadkm at gmail.com
Mon Oct 30 08:16:12 PDT 2017


Hello,

Is it possible to set nodata using -co option.?

gdal_translate input.tif output.tif -co TIFFTAG_GDAL_NODATA=-30000
Input file size is 500, 500
Warning 6: driver GTiff does not support creation option TIFFTAG_GDAL_NODATA
0...10...20...30...40...50...60...70...80...90...100 - done.

According to doc, TIFFTAG_GDAL_NODATA is an tag available if GeoTIFF
profile  is GDALGeoTIFF.  and by default the profile is exactly that. I
cross checked this with sources.

using -a_nodata is working. But I would like to see if I can pass nodata
value via creation options. This is because in my workflow I am not using
gdal_translate utility.

gdalinfo --version
GDAL 2.2.0, released 2017/04/28


[1] http://www.gdal.org/frmt_gtiff.html
-- 
Regards,
   Rashad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20171030/82532b25/attachment.html>


More information about the gdal-dev mailing list