<div dir="ltr">Thanks so much for the super quick fixes, amazing work!<br><br>
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.</div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sun, Jun 22, 2025 at 12:27 AM Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div>
<p>Answering your 4 emails at once:<br>
</p>
<blockquote type="cite">
<div dir="ltr">What’s the purpose of including the band number in
the <code>gdalinfo</code> JSON output? Since the <code>"bands"</code>
key is a list, the band number is already implied by the index.
Doesn’t this make the explicit band number redundant?</div>
</blockquote>
<p>Kind of, but not really. Given that JSON based indexing is
0-based, but GDAL band indexing in the GDAL API is 1-based, it is
not useless to recall that 1-based index IMHO</p>
<p>NoData JSON value fix: <a href="https://github.com/OSGeo/gdal/pull/12625" target="_blank">https://github.com/OSGeo/gdal/pull/12625</a></p>
<p>RAT JSON fix: <a href="https://github.com/OSGeo/gdal/pull/12627" target="_blank">https://github.com/OSGeo/gdal/pull/12627</a></p>
<blockquote type="cite">
<div dir="ltr">When I run <code>gdalinfo</code> with <code>-stats</code>
options on an <code>Int64</code> raster, I get the following
warning:<br>
<br>
<font face="monospace">$ gdalinfo -json -stats zzz.tif<br>
Warning 1: GetNoDataValue() returns an approximate value of
the true nodata value = 9223372036854775807. Use
GetNoDataValueAsInt64() instead</font><br>
<p>As an end user, what am I actually supposed to do with this
warning?</p>
</div>
</blockquote>
<p>Submit a pull request to fix <span style="white-space:pre-wrap">statistics computation to not use double for Int64/UInt64 data types, or file an issue about that.</span></p>
<p><span style="white-space:pre-wrap">Note: I believe we have ~ 2k subcribers to the mailing list. Please try to group together your questions and/or use github issues when appropriate
</span></p>
<pre cols="72">--
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</div>
</blockquote></div>