[Gdal-dev] Writing NITF 2.0 and JP2 files with gdal_translate

Ron DeSpain ron_despain at hotmail.com
Tue Jun 13 13:10:23 EDT 2006


1] In trying to produce NITF2.1 JPEG2000 chip files from NITF2.0 and NITF2.1 
files, the following calls produced bad files.

gdal_translate --config GDAL_CACHEMAX 500 -of NITF -srcwin 2909 6648 400 400 
-scale -co "IC=C8" Imagep1_nitf20.ntf Imagep1_nitf20ChipToNJp2.ntf

gdal_translate --config GDAL_CACHEMAX 500 -of NITF -srcwin 11780 21928 400 
400 -scale -co "IC=C8" Image65PanNitf21U.NTF 
Image65PanNitf21UgdalchipToIC8.NTF

2] In trying to procuce NITF 2.0 uncompressed files from NITF2.1 
uncompressed files the following calls just produced NITF 2.1 files.

gdal_translate --config GDAL_CACHEMAX 800 -of NITF -quiet -co "FVER=02.00" 
Image65PanNitf21U.NTF Image65PanNitf21UtoN20.NTF

gdal_translate --config GDAL_CACHEMAX 800 -of NITF -quiet -co 
"FVER=NITF02.00" Image65PanNitf21U.NTF Image65PanNitf21UtoNITF0200.NTF

Does anyone see what I'm missing?

Thanks
Ron DeSpain
ron_despain at hotmail.com





More information about the Gdal-dev mailing list