[gdal-dev] JPEG2000 issues

Stephen Woodbridge woodbri at swoodbridge.com
Fri Nov 7 12:21:09 EST 2008


Hi Frank, et al,

I'm working with GDAL 1.5.3, released 2008/09/09 built with libjasper so 
I can process some DOQQ composites and chop them into smaller tiles.

Below is a typical image but I get a bunch of errors in gdalinfo. The 
system has like 6 GB of memory and only about 1.5GB of swap. The 
compressed image is huge at 538MB. I tried 3-4 images in the directory 
and got the same report on all of them.

Any thoughts on this?
Is this a real problem, ie. I will not be able to access these images.
Other options solutions?

We also have JP2MrSID support, is there a way to force it to use this 
driver instead of the JPEG2000 driver and see if that works any better?

Thanks,
   -Steve

$ ls -lh /var/data/raw_data/indiana/ortho_1-1_1m_j_in175_2008_1.jp2
-rw-rw-r--  1 dallen users 563M Oct 20 16:17 
/var/data/raw_data/indiana/ortho_1-1_1m_j_in175_2008_1.jp2

$ gdalinfo /var/data/raw_data/indiana/ortho_1-1_1m_j_in175_2008_1.jp2
Driver: JPEG2000/JPEG-2000 part 1 (ISO/IEC 15444-1)
Files: /var/data/raw_data/indiana/ortho_1-1_1m_j_in175_2008_1.jp2
Size is 44462, 49524
Coordinate System is:
PROJCS["NAD83 / UTM zone 16N",
     GEOGCS["NAD83",
         DATUM["North_American_Datum_1983",
             SPHEROID["GRS 1980",6378137,298.2572221010042,
                 AUTHORITY["EPSG","7019"]],
             AUTHORITY["EPSG","6269"]],
         PRIMEM["Greenwich",0],
         UNIT["degree",0.0174532925199433],
         AUTHORITY["EPSG","4269"]],
     PROJECTION["Transverse_Mercator"],
     PARAMETER["latitude_of_origin",0],
     PARAMETER["central_meridian",-87],
     PARAMETER["scale_factor",0.9996],
     PARAMETER["false_easting",500000],
     PARAMETER["false_northing",0],
     UNIT["metre",1,
         AUTHORITY["EPSG","9001"]],
     AUTHORITY["EPSG","26916"]]
Origin = (559388.000000000000000,4296871.000000000000000)
Pixel Size = (1.000000000000000,-1.000000000000000)
Corner Coordinates:
Upper Left  (  559388.000, 4296871.000) ( 86d18'57.27"W, 38d49'7.03"N)
Lower Left  (  559388.000, 4247347.000) ( 86d19'12.47"W, 38d22'20.43"N)
Upper Right (  603850.000, 4296871.000) ( 85d48'13.79"W, 38d48'52.19"N)
Lower Right (  603850.000, 4247347.000) ( 85d48'40.36"W, 38d22'5.82"N)
Center      (  581619.000, 4272109.000) ( 86d 3'45.98"W, 38d35'37.38"N)
error: cannot decode code stream
Band 1 Block=256x256 Type=Byte, ColorInterp=Undefined
error: expecting signature box
   Metadata:
     LAYER_TYPE=athematic
error: cannot get box
<GDALRasterAttributeTable/>

error: cannot get box
Band 2 Block=256x256 Type=Byte, ColorInterp=Undefined
error: cannot get box
   Metadata:
     LAYER_TYPE=athematic
error: cannot get box
error: cannot get box
Band 3 Block=256x256 Type=Byte, ColorInterp=Undefined
error: cannot get box
   Metadata:
     LAYER_TYPE=athematic
error: cannot get box
error: cannot get box
Band 4 Block=256x256 Type=Byte, ColorInterp=Undefined
   Metadata:
     LAYER_TYPE=athematic
error: cannot get box



More information about the gdal-dev mailing list