[Gdal-dev] .img creation issues for files between 2 and 4 gig?

Andrey Kiselev dron at ak4719.spb.edu
Wed Jun 9 01:41:21 EDT 2004


Hello, Martin,

On Tue, Jun 08, 2004 at 05:13:23PM -0600, Chapman, Martin wrote:
> I'm using the GDAL (1.1.9) c++ api to create .img files from geotiffs
> with the CreateCopy() method.  The output files are between 2 and 4
> gig. The files do not appear to be generating correctly.  I can open
> and view the final product but it appears as if only some of the bands
> are being written to the file.  The image looks good until about half
> way down, then it turns a shade of yellow.  I've tried this with gdal
> directly and with OSSIM (which uses gdal for .img creation) and the
> results are the same.  Erdas Imagine kicks the following error when
> opening the generated file...
> 
> Operands are not the same type: <empty> NotEqual <string>
> 
> Has anyone experienced this behavior before?  
> 
> P.S.
> 
> I can, read .img files of all sizes correctly, and I can write .img
> files correctly below 2 gig.  Only between 2 and 4 gig gives me this
> behavior.

What about files larger than 4GB? Whether they can be opened properly?

ERDAS has different format for large files, and GDAL creates such files
when the file size becomes greater 4GB. Probably we should do that on
2GB border.

						Andrey

-- 
Andrey V. Kiselev
Home phone:  +7 812 5274898  ICQ# 26871517



More information about the Gdal-dev mailing list