Re: [gdal-dev] Bug in GDALGetRasterSampleOverview

2011-12-17 Thread Frank Warmerdam
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 b

Re: [gdal-dev] Bug in GDALGetRasterSampleOverview

2011-12-17 Thread Mateusz Łoskot
On 17 December 2011 11:57, Even Rouault wrote: > 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 u

Re: [gdal-dev] Bug in GDALGetRasterSampleOverview

2011-12-17 Thread Even Rouault
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

[gdal-dev] Bug in GDALGetRasterSampleOverview

2011-12-17 Thread Marian Krivos
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. best regards Marian Krivos ___ gdal-dev m