[gdal-dev] Re: size limit in using gdal_translate
estrada.adam at gmail.com
estrada.adam at gmail.com
Fri Feb 15 10:31:57 EST 2008
Limei,
Gdal_translate defaults the output file to GeoTIFF unless you
specify that it is another file type. You can do this by using the
argument ( -of ) which in this case will be HFA (-of HFA). The way
you currently have your command line configured, the output file will
still be a TIFF even though you have specified that the extension
is .img. An ERDAS IMAGINE .img can and will create files that far
exceed 4 gigs.
Regards,
AWE
On Feb 15, 10:21 am, WolfgangZ <wol... at gmx.net> wrote:
> 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 athttp://www.gdal.org/frmt_gtiff.htmlfor other create
> options for the tiff format andhttp://www.gdal.org/formats_list.html
> gives you a hint of the maximum file size
>
> regards
> Wolfgang
>
> _______________________________________________
> gdal-dev mailing list
> gdal-... at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/gdal-dev- Hide quoted text -
>
> - Show quoted text -
More information about the gdal-dev
mailing list