[gdal-dev] What is the meaning of the message from gdalinfo
Frank Warmerdam
warmerdam at pobox.com
Tue Dec 16 11:20:12 EST 2008
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