[gdal-dev] Can't read NITF image

Nikos Alexandris nik at nikosalexandris.net
Sun Jul 7 12:41:14 PDT 2013


Hi!

I am trying to access an  .ntf  image.

gdalinfo /Some_Path/03APR13WV010500013APR03073140-
P1BS-500060446050_03_P002.ntf -noct -nomd -nogcp -sd 1

ERROR 4: `/vsisubfile/3884_478612158,/Some_Path/03APR13WV010500013APR03073140-
P1BS-500060446050_03_P002.ntf' not recognised as a supported file format.

ERROR 1: Unable to open JPEG2000 image within NITF file.
No JPEG2000 capable driver (JP2KAK, JP2ECW, JP2MRSID, JP2OPENJPEG, etc...) is 
available.
You can define the NITF_OPEN_UNDERLYING_DS configuration option to NO, in order 
to just get the metadata.
gdalinfo failed - unable to open '/Some_Path/03APR13WV010500013APR03073140-
P1BS-500060446050_03_P002.ntf'.


Indeed,

gdalinfo --formats | grep JPEG
  JPEG (rwv): JPEG JFIF

there is no JPEG2000 support (working in Funtoo, gdal installed via portage, I 
think this: <http://gpo.zugaina.org/AJAX/Ebuild/2502482/View>)


Setting

export NITF_OPEN_UNDERLYING_DS=NO

let's me read the metadata.


Is this a *generic* problem or else, if I compile  --with-jasper  support will 
allow for reading this image?  And, subsequently, import via r.in.gdal in 
GRASS-GIS?

Thank you, Nikos


More information about the gdal-dev mailing list