[gdal-dev] gdalinfo -stats on Int64 raster: confusing warning

2025-06-21 Thread Denis Rykov via gdal-dev
When I run gdalinfo with -stats options on an Int64 raster, I get the following warning: $ gdalinfo -json -stats zzz.tif Warning 1: GetNoDataValue() returns an approximate value of the true nodata value = 9223372036854775807. Use GetNoDataValueAsInt64() instead As an end user, what am I actually

Re: [gdal-dev] gdalinfo -stats on Int64 raster: confusing warning

2025-06-21 Thread Denis Rykov via gdal-dev
Thanks so much for the super quick fixes, amazing work! And sorry for the noise. I often hesitate to open an issue when I'm not sure it's really a bug, so the mailing list felt like a safer place to ask. On Sun, Jun 22, 2025 at 12:27 AM Even Rouault wrote: > Answering your 4 emails at once: > >

Re: [gdal-dev] gdalinfo -stats on Int64 raster: confusing warning

2025-06-21 Thread Even Rouault via gdal-dev
Answering your 4 emails at once: What’s the purpose of including the band number in the |gdalinfo| JSON output? Since the |"bands"| key is a list, the band number is already implied by the index. Doesn’t this make the explicit band number redundant? Kind of, but not really. Given that JSON b