[Gdal-dev] Filesize limit exceeded using Jpeg2000

Frank Warmerdam warmerdam at pobox.com
Wed Jul 28 17:15:23 EDT 2004


Ken Sewell wrote:
> I'm running on the latest GDAL CVS and I'm trying to convert a file that
> is about 4-5G into a .jp2  As soon as the .jp2 file reaches 2G in size I
> get this error:
> 
> Input file size is 22920, 28830
> 0...10...20...30...40...50..ERROR 1:
> TIFFAppendToStrip:03feb22182535_ortho_sharp.jp2: Write error at scanline
> 18017
> ERROR 1: TIFFWriteScanline failed.
> Filesize limit exceeded
> 
> My system certainly supports large files, so I'm assuming its a gdal or
> jasper issue.  I have gdal compiled against the hacked jasper
> ( jasper-1.701.0.uuid ).  Any ideas?  Thanks.

Ken,

First, I don't think you can practically produce JP2 files of this size
using JasPer.  As far as I know it needs to hold everything in RAM.   You
normally need the JP2KAK driver to produce large JP2 files.

Second, are you sure you are writting in JP2 format?  It is in the middle
of the TIFF driver where you run into problems.  What was the command you
issued?

Third, is VSI_LARGE_API_SUPPORTED defined to 1 in gdal/port/cpl_config.h?
If not, you won't be able to operate on files larger than 4GB.  If it is
and you are unable to product TIFF files in the 2-4GB range there is an
issue I would like to look into.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list