[FWTools] Large image creation for MapServer

Bryan Keith bryan at geomega.com
Fri Jun 16 17:49:25 EDT 2006


Frank,

Frank Warmerdam wrote:
> Bryan Keith wrote:
>> Invalid argument
>> ERROR 3: Seek to 0:e3e6815e on 0xad2bf98 failed
>> Invalid argument
>> ERROR 3: Seek to 0:e3e6b15e on 0xad2bf98 failed
>>
> 
> Brian,
> 
> How large is the large jpeg file?  I suspect it is over 2GB and the libjpeg
> is using a "32bit signed offset" which does not support file sizes over 2GB.
> I'm not sure what can be done about it.  I might be able to alter the jpeg
> driver to support large files. Hmm, looking at the most recent code it seems
> I already redirectly libjpeg to use my "large file API" for reading jpeg
> data, so large files should not be a problem.

The jpg is not large (only 210MB).

> 
> How confident are you that the jpeg file is in good shape?  If you have some
> other application that can read the file, could you use that to convert it
> to another file format?

Good call, Frank, though the results here were strange.  ImageMagick 
didn't like the file, nor did another image viewer I have (Jasc). 
MapServer didn't like the file.  However, ArcView 3.x displayed the 
entire image without a problem.  I was able to use ESRI tools to convert 
the jpg to imagine format.  Strange, though, that other apps did not 
like the jpg.

Bryan

Bryan Keith
GIS Specialist
Geomega, Inc.
Boulder, CO, USA


More information about the FWTools mailing list