[Gdal-dev] .img creation issues for files between 2 and 4 gig?
Chapman, Martin
MChapman at sanz.com
Wed Jun 9 11:33:49 EDT 2004
Andrey,
Files greater than 4g work great. I agree, the border line should be
2g. How can I get that change in the GDAL baseline? Do you know how to
make the change?
Thanks,
Martin
-----Original Message-----
From: Andrey Kiselev [mailto:dron at ak4719.spb.edu]
Sent: Tuesday, June 08, 2004 11:41 PM
To: gdal-dev at remotesensing.org
Subject: Re: [Gdal-dev] .img creation issues for files between 2 and 4
gig?
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
_______________________________________________
Gdal-dev mailing list
Gdal-dev at remotesensing.org
http://remotesensing.org/mailman/listinfo/gdal-dev
More information about the Gdal-dev
mailing list