<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 2015-04-07 16:33, Even Rouault
wrote:<br>
</div>
<blockquote cite="mid:201504072133.43250.even.rouault@spatialys.com"
type="cite">
<pre wrap="">This RFC modifies the GDALRasterBand GetHistogram(), GetDefaultHistogram() and
SetDefaultHistogram() methods to accept arrays of 64-bit integer instead of
the current arrays of 32-bit integer for bucket counts. This will fix issues
when operating on large rasters that have more than 2 billion pixels.
</pre>
</blockquote>
A similar problem exists with
GDALRasterBand::GetRasterSampleOverview(): it takes a 31-bit integer
value for its '<em>nDesiredSamples'</em> parameter. I've run into
some 100,000×100,000-pixel images for which the first two levels of
overviews would contain more than 2-billion samples.<br>
<br>
<div class="moz-signature">-- <br>
Dr. Craig S. Bruce
<br>
Senior Software Developer
<br>
CubeWerx<i> </i>Inc.</div>
</body>
</html>