[Gdal-dev] Error reading jp2: 'terminate called after throwing an
instance of 'std::bad_alloc'
epatton at nrcan.gc.ca
Fri Jan 19 11:15:26 EST 2007
I've just installed gdal-1.4.0. I gettgin errors trying to read and translate jp2 files. I have compiled the ER Mapper ECW SDK, and JPEG2000 support shows up in my configure output:
JASPER support: yes (GeoJP2=no)
ECW support: yes
gdalinfo --formats confirms that the support is enabled:
JPEG (rw): JPEG JFIF
JPEG2000 (rw): JPEG-2000 part 1 (ISO/IEC 15444-1)
ECW (rw): ERMapper Compressed Wavelets
JP2ECW (rw+): ERMapper JPEG2000
No errors occurred during make or make install. I'm trying to open a 291MB jp2 file that represents 1m LIDAR dataset. Here's the output when I try to read it with gdalinfo/translate:
$ gdalinfo csr.jp2
terminate called after throwing an instance of 'std::bad_alloc'
Any ideas on where to proceed from here? I've explored every other avenue for opening these files short of logging into Windows; even Imagemagick choked on these files.
More information about the Gdal-dev