[gdal-dev] Inconsistent noDataValue formatting in gdalinfo output
Denis Rykov
rykovd at gmail.com
Sat Jun 21 14:25:18 PDT 2025
Hi! I just noticed that gdalinfo reports the NoData value as 255.0 in JSON
output, but as 255 in the default text output. Why is there a difference?
$ gdalinfo -json 8812.tif | jq '.bands[0]["noDataValue"]'
255.0
$ gdalinfo 8812.tif
...
Band 1 Block=256x256 Type=Byte, ColorInterp=Gray
NoData Value=255
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250621/91f6a8c6/attachment.htm>
More information about the gdal-dev
mailing list