[gdal-dev] -wm (memory in mb with gdalwarp)

Jonathan Moules jonathanmoules at warwickshire.gov.uk
Mon Dec 2 10:42:59 PST 2013


On 2 December 2013 18:32, Even Rouault <even.rouault at mines-paris.org> wrote:

> Le lundi 02 décembre 2013 19:12:07, Jonathan Moules a écrit :
> > Hi Even,
> > To hit the 10GB limit I'm using (Windows Server 2008):
> >
> > gdal_translate -of GTiff -co TILED=YES -co BIGTIFF=YES -co COMPRESS=JPEG
> > -co JPEG_QUALITY=60 -co BLOCKXSIZE=512 -co BLOCKYSIZE=512 -co
> > PHOTOMETRIC=YCBCR 2000.vrt 2000.tif
> >
> > I tried adding:  --config GDAL_CACHEMAX 27000000000 but then it'd just
> > crash with out-of-memory (it wouldn't actually stop at 27GB; so I guess
> > that works differently again).
>
> Crash (Windows dialog) or "clean" exit with a GDAL error message ?
> What are the files (TIFF, ECW, ...) in the VRT ?
> I don't see anything wrong, and have not OS and hardware specs to reproduce
> that.
>

A clean GDAL error:

0...ERROR 2: GDALRasterBlock::Internalize : Out of memory allocating 262144
> bytes.
> ERROR 1: GetBlockRef failed at X block offset 334, Y block offset 60


The "files" are one single ECW file. 5GB compressed, about 200GB
uncompressed.

-- 
This transmission is intended for the named addressee(s) only and may 
contain sensitive or protectively marked material up to RESTRICTED and 
should be handled accordingly. Unless you are the named addressee (or 
authorised to receive it for the addressee) you may not copy or use it, or 
disclose it to anyone else. If you have received this transmission in error 
please notify the sender immediately. All email traffic sent to or from us, 
including without limitation all GCSX traffic, may be subject to recording 
and/or monitoring in accordance with relevant legislation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20131202/81781908/attachment.html>


More information about the gdal-dev mailing list