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

Kurt Schwehr schwehr at ccom.unh.edu
Mon Oct 15 18:09:08 EDT 2007


Hi Frank,

Thanks for the quick feedback.  Looks like all the other drivers are 
restricted licenses that won't work with fink or windows only.  I'll put 
in jasper into the fink gdal build just to have something in there for 
people with smaller images.

Thanks,
-Kurt

> 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,


-- 
UNH - Assist. Research Professor
JPL - SSV / Phoenix team
kurt at ccom.unh.edu
http://vislab-ccom.unh.edu/~schwehr/
http://schwehr.org/




More information about the Gdal-dev mailing list