[Gdal-dev] jasper for very large jpeg 2000 images

Frank Warmerdam warmerdam at pobox.com
Mon Oct 15 17:24:10 EDT 2007


Kurt Schwehr wrote:
> Hi All,
> 
> Is there a way to allow very large images to make it through the 
> drivers?  I'm trying to convert HiRise images from Mars without luck.  
> For example trying to subset a quicklook image
> 
> gdal_translate -of PNG -srcwin 10 10 1000 1000 
> PSP_005372_1515_RED.QLOOK.JP2 foo.png
> Input file size is 32369, 95295
> error: cannot decode code stream
> gdal_translate(22843) malloc: *** vm_allocate(size=3084607488) failed 
> (error code=3)
> gdal_translate(22843) malloc: *** error: can't allocate region
> gdal_translate(22843) malloc: *** set a breakpoint in szone_error to debug
> ERROR 2: Internalize failed
> ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
> libpng error: No IDATs written into file
> Abort trap
> 
> I'm guessing that this is an architectural issue with gdal?

Kurt,

I believe this is an architectural problem with *JasPer* which takes
a "decode the whole image" approach designed for consumer camera style
images, not geospatial mosaics.

This is why for most purposes I encourage people to use one of the
other JPEG2000 drivers.

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    | President OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list