[gdal-dev] Output format in using gdal_translate
Limei Ran
lran at unc.edu
Mon Feb 18 11:29:37 EST 2008
Hi,
Thanks for all your help on using gdal_translate. I was successful on
creating a huge image with -of HFA. I still have two questions about
raster formats used in GDAL:
1. The utility created three output files:
out.ige, out.img, out.img.aux.xml. What is .ige file (it is a huge
file -- close to 12gb) since my input has only two files with .img and
.rrd?
2. I am creating a raster file for some calculation. So, formats do
not matter as long as it is efficient in storing and accessing. Is any
GDAL raster format with no Limit Size (such as ESRI .hdr Labelled)
better than HFA format in storing and accessing?
Thanks,
Limei
Quoting estrada.adam:
> 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 -
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
More information about the gdal-dev
mailing list