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