[gdal-dev] What is the meaning of the message from gdalinfo

Mo Wang mo at discoveraai.com
Tue Dec 16 11:34:06 EST 2008


Frank,

I have built Jasper JPEG2000. And my question was what
'J2K_SUBFILE:3935,115450995,caf_08mar12.ntf' is. My input file name was
caf_08mar12.ntf. It seems wants to tell me something: why J2K_SUBFILE?
And what are those two numbers (3935 and 115450995) for? Thanks.

Mo

-----Original Message-----
From: Frank Warmerdam [mailto:warmerdam at pobox.com] 
Sent: Tuesday, December 16, 2008 11:20 AM
To: Mo Wang
Cc: gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev] What is the meaning of the message from gdalinfo

Mo Wang wrote:
> Hi all,
> 
>  
> 
> I ran gdalinfo (both gdal 1.5.2 and gdal 1.6.0) on a nitf image and
got 
> the following message:
> 
>  
> 
> gdalinfo caf_08mar12.ntf
> 
> ERROR 4: 'J2K_SUBFILE:3935,115450995,caf_08mar12.ntf' does not exist
in 
> the file system, and is not recognised as a supported dataset name.
> 
> ERROR 1: Unable to open JPEG2000 image within NITF file.
> 
> Is the JP2KAK driver available?
> 
> gdalinfo failed - unable to open 'caf_08mar12.ntf'.
> 
>  
> 
> What is the meaning of the message (especially ERROR 4)? Thank you in 
> advance for taking time to answer.

Mo,

ERROR 4 maps to "CPLE_OpenFailed" as defined in gdal/port/cpl_error.h.

The error basically means that your NITF file contains a JPEG2000
compressed
image so the NITF driver attempted to open that as a subdataset using
the
specal J2K_SUBFILE mechanism but this failed.  Mostly likely it failed
because you do not have JPEG2000 support built into your GDAL library.

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    | Geospatial Programmer for Rent



More information about the gdal-dev mailing list