[gdal-dev] write nodata value using using creation option
jratike80
jukka.rahkonen at maanmittauslaitos.fi
Mon Oct 30 09:20:53 PDT 2017
rashadkm wrote
> 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
Hi Rashad,
If you do not use gdal_translate, please tell us what you do use - relevant
part of your Python code or whatever you have. By reading the manual
http://www.gdal.org/frmt_gtiff.html it is obvious that there is no such
creation option but for sure there is some other way.
-Jukka Rahkonen-
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
More information about the gdal-dev
mailing list