[gdal-dev] Can't read NITF image
Even Rouault
even.rouault at mines-paris.org
Sun Jul 7 13:00:06 PDT 2013
Le dimanche 07 juillet 2013 21:41:14, Nikos Alexandris a écrit :
> 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'.
>
[...]
> Is this a *generic* problem or else, if I compile --with-jasper support
> will allow for reading this image?
This is a problem you'll run into each time you will open a NITF image whose
imagery is compressed as a JPEG2000 codestream. Compiling --with-jasper might
help, but if your image is big, it might not work since jasper reads the whole
image into memory. If you run into this memory problem, you might use OpenJPEG
2 instead (provided you use GDAL 1.10), or else one of the proprietary
implementation.
> And, subsequently, import viar.in.gdal in GRASS-GIS?
If gdalinfo can open it, then it should work with r.in.gdal.
>
> Thank you, Nikos
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
--
Geospatial professional services
http://even.rouault.free.fr/services.html
More information about the gdal-dev
mailing list