[gdal-dev] Bug in GDALGetRasterSampleOverview
Frank Warmerdam
warmerdam at pobox.com
Sat Dec 17 10:51:35 EST 2011
On 11-12-17 04:38 AM, Marian Krivos wrote:
> Hello,
>
> current implementation of GDALGetRasterSampleOverview() don't work
> properly for big rasters
> over 2GB because of integer overflow.
Marian,
I mildly dispute this. It is just that you can't express a desire to find
an overview with more than 2 billion pixels in it. The raster itself can
be arbitrarily large. I would claim it is not a common case at all to want
to do random sampling (this function primarily is used by
GDALGetRandomRasterSample()) of more than two billion samples and return it
in a simple array. If you want very dense sampling you should be using some
sort of streaming process.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/warmerda
and watch the world go round - Rush | Geospatial Software Developer
More information about the gdal-dev
mailing list