[gdal-dev] Re: size limit in using gdal_translate

WolfgangZ wollez at gmx.net
Fri Feb 15 10:21:55 EST 2008


Limei Ran schrieb:
> 
> Hi Frank,
> 
> Thank you for your help on creating a raster file from polygons.
> 
> I am creating a big file using gdal_translate and I got the following 
> message:
> ===================================
> gdal_translate landcover.img -a_ullr -1170075 3217665 2324145 188865 
> -scale 0 255 0 0 -outsize 116474 100960 test.img
> Input file size is 33146, 52402
> 0ERROR 6: A 116474 pixels x 100960 lines x 1 bands Byte image would be 
> larger than 4GB
> but this is the largest size a TIFF can be.  Creation failed.
> ===================================
> 
> Is there any way I can create this raster (other formats) without this 
> space limitation?
> 
> Thanks,
> 
> Limei
hi,

try it with these additional create options:
-co BIGTIFF=YES -co TILED=YES

BIGTIFF allows you to exceed the 4GB
TILED should speed up the reading of the output file as reading of small 
parts of the image

Have a look at http://www.gdal.org/frmt_gtiff.html for other create 
options for the tiff format and http://www.gdal.org/formats_list.html 
gives you a hint of the maximum file size

regards
Wolfgang



More information about the gdal-dev mailing list