[gdal-dev] -wm (memory in mb with gdalwarp)
Jonathan Moules
jonathanmoules at warwickshire.gov.uk
Mon Dec 2 08:17:11 PST 2013
Hi List,
I've just tried the following:
call gdalwarp -of GTiff *-wm 13000* -co TILED=YES -co BIGTIFF=YES -co
COMPRESS=JPEG -co JPEG_QUALITY=80 -co BLOCKXSIZE=512 -co BLOCKYSIZE=512 -co
PHOTOMETRIC=YCBCR SP1937.tif SP1938.tif SP1939.tif 1.tif
The documentation says:
> -wm memory_in_mb:
> Set the amount of memory (in megabytes) that the warp API is allowed to
> use for caching.
So by my reading I'm allocating a bit less than 13GB (of my 16,730,672kB
RAM) to gdalwarp.
Imagine my surprise when I get this error:
ERROR 5: GDALWarpOptions.Validate()
dfWarpMemoryLimit=13000 is unreasonably small.
After more testing, anything with 4 digits works fine (including 9999), but
anything with five digits (i.e. 10,000) gives me that error.
Is this a bug?
(GDAL 1.10.1)
Cheers,
Jonathan
--
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/06f7ef8e/attachment.html>
More information about the gdal-dev
mailing list