[gdal-dev] Bug in GDALGetRasterSampleOverview
Even Rouault
even.rouault at mines-paris.org
Sat Dec 17 06:57:06 EST 2011
Le samedi 17 décembre 2011 13:38:16, Marian Krivos a écrit :
> Hello,
>
> current implementation of GDALGetRasterSampleOverview() don't work
> properly for big rasters
> over 2GB because of integer overflow.
>
> Solutions is replace int for unsigned long at the price of API/ABI broke.
Something you might want to add in
http://trac.osgeo.org/gdal/wiki/GDAL20Changes
Actually, GIntBig which is guaranteed to be 64bits even on 32bit platform
would be better.
But for now, you can pretty much copy&paste the current implementation. It is
just a few lines long and only uses methods available in public API.
>
> best regards
> Marian Krivos
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
More information about the gdal-dev
mailing list