[gdal-dev] gdal_retile not enough memory

mhw-at-yg matt.wilkie at yukon.ca
Fri Mar 26 10:31:37 PDT 2021


just a shot in the dark, but maybe increasing GDAL_CACHEMAX would help? 

> You need to enlarge cache size (GDAL_CACHEMAX) so that it can fit the 
> uncompressed tiles of one single row (count tiles in the row, not pixels.)
>
> ceil(126015/128)*3*8*128*128 = 387 118 080 = half a gigabyte

>From my example where 126015 is the number of pixels in the row and tile
size is 128x128.

Thanks go to Darafei in
http://osgeo-org.1560.x6.nabble.com/gdal-dev-nearblack-on-multi-GB-images-very-slow-td5482527.html




-----
-Matt
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html


More information about the gdal-dev mailing list