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, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/warmerda
and watch the world go round - Rush    | Geospatial Software Developer

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to