[gdal-dev] NITF 2.1 GDAL 1.7.2 and FWTools 2.4.7 Translation Errors

David Boyd dboyd at data-tactics.com
Fri May 21 07:39:49 EDT 2010


Doug:
   I have seen similar issues on NITF with earlier versions of GDAL and
frankly had hoped they were fixed in 1.7.2.

Most of the issues I have seen were with the GDAL components 
incorporated into Geoserver.

My images are all Compressed ADRG from NGA.

I will be very interested to hear of any solution you uncover.


Doug White wrote:
> Hi,
> 
> I have been trying to translate a DigitalGlobe GeoEye-1 NITF image to 
> GeoTiff or JP2 with GDAL 1.7.2 compiled with JP2ECW on x86 Linux and 
> also with FWTools 2.4.7 (raises a unknown software exception).
> 
> gdalinfo will read the file successfully. I can display the file with 
> PCI Geomatics on a Windows platform.
> 
> However we consistently get a seg-fault on attempts to translate a 
> number of NITF images. It doesn't seem to matter what creation options 
> are used or what output format is chosen.
> 
> gdal_translate -of gtiff -co COMPRESS=LZW -sds test1.ntf out.tif
> Input file size is 35840, 27648
> 0...10...20...30...40...50...60...Segmentation fault
> 
> Output from gdalinfo is below along with supported formats.
> 
> Any assistance would be appreciate as I have potentially will have a 
> large number of similar images that must be transformed to either 
> GeoTiff or JP2 formats.
> 
> Regards,
> 
> Doug White.
> 
> -- 
> 
> gdalinfo test1.ntf
> Driver: NITF/National Imagery Transmission Format
> Files: test1.ntf
> Size is 35840, 27648
> Coordinate System is:
> GEOGCS["WGS 84",
>     DATUM["WGS_1984",
>         SPHEROID["WGS 84",6378137,298.257223563,
>             AUTHORITY["EPSG","7030"]],
>         TOWGS84[0,0,0,0,0,0,0],
>         AUTHORITY["EPSG","6326"]],
>     PRIMEM["Greenwich",0,
>         AUTHORITY["EPSG","8901"]],
>     UNIT["degree",0.0174532925199433,
>         AUTHORITY["EPSG","9108"]],
>     AUTHORITY["EPSG","4326"]]
> GeoTransform =
>   151.8181220669296, 5.871164560022267e-06, -5.023651349735254e-09
>   -20.99465038292781, 8.719551326766783e-07, -5.661655072079407e-06
> Metadata:
>   NITF_FHDR=NITF02.10
>   NITF_CLEVEL=06
>   NITF_STYPE=BF01
>   NITF_OSTAID=DG
>   NITF_FDT=20080105031559
>   NITF_FTITLE=WV01_SENSOR:2008-01-04T23:56:28.358625Z
>   NITF_FSCLAS=U
>   NITF_FSCLSY=US
>   NITF_FSCODE=
>   NITF_FSCTLH=0
>   NITF_FSREL=UNCLASSIFIED
>   NITF_USE00A_ANGLE_TO_NORTH=270
>   NITF_USE00A_MEAN_GSD=025.0
>   NITF_USE00A_DYNAMIC_RANGE=02047
>   NITF_USE00A_OBL_ANG=29.02
>   NITF_STDIDC_ACQUISITION_DATE=20080104235628
>   NITF_STDIDC_MISSION=WV01
>   NITF_STDIDC_PASS=16
>   NITF_STDIDC_OP_NUM=000
>   NITF_STDIDC_START_SEGMENT=AA
>   NITF_STDIDC_REPRO_NUM=00
>   NITF_STDIDC_REPLAY_REGEN=000
>   NITF_STDIDC_START_COLUMN=001
>   NITF_STDIDC_START_ROW=00001
>   NITF_STDIDC_END_SEGMENT=AA
>   NITF_STDIDC_END_COLUMN=035
>   NITF_STDIDC_END_ROW=00027
>   NITF_STDIDC_COUNTRY=YY
>   NITF_STDIDC_WAC=
>   NITF_STDIDC_LOCATION=2059S15155E
>   NITF_USE00A_ROLL_ANG=-19.90
>   NITF_USE00A_N_REF=00
>   NITF_USE00A_REV_NUM=01648
>   NITF_USE00A_N_SEG=001
>   NITF_USE00A_MAX_LP_SEG=027024
>   NITF_USE00A_SUN_EL=+62.0
>   NITF_USE00A_SUN_AZ=099.3
>   NITF_FSDCTP=
>   NITF_FSDCDT=
>   NITF_FSDCXM=
>   NITF_FSDG=
>   NITF_FSDGDT=
>   NITF_FSCLTX=
>   NITF_FSCATP=
>   NITF_FSCAUT=
>   NITF_FSCRSN=
>   NITF_FSSRDT=
>   NITF_FSCTLN=
>   NITF_FSCOP=00000
>   NITF_FSCPYS=00000
>   NITF_ENCRYP=0
>   NITF_FBKGC=126,126,126
>   NITF_ONAME=DigitalGlobe
>   NITF_OPHONE=+1(800)496-1225
>   NITF_IID1=P101B5EB00
>   NITF_IDATIM=20080104235628
>   NITF_TGTID=
>   NITF_IID2=04JAN08WV011600008JAN04235628-P1BS-005692925010_02_P001
>   NITF_ISCLAS=U
>   NITF_ISCLSY=US
>   NITF_ISCODE=
>   NITF_ISCTLH=0
>   NITF_ISREL=UNCLASSIFIED
>   NITF_ISDCTP=
>   NITF_ISDCDT=
>   NITF_ISDCXM=
>   NITF_ISDG=
>   NITF_ISDGDT=
>   NITF_ISCLTX=
>   NITF_ISCATP=
>   NITF_ISCAUT=
>   NITF_ISCRSN=
>   NITF_ISSRDT=
>   NITF_ISCTLN=
>   NITF_ISORCE=DigitalGlobe
>   NITF_PVTYPE=INT
>   NITF_IREP=MONO
>   NITF_ICAT=VIS
>   NITF_ABPP=11
>   NITF_PJUST=R
>   NITF_IMAGE_COMMENTS=The imagery and metadata data on this media is the 
> property of                  DigitalGlobe and is licensed for use only. 
> All use must be in                   accordance with the terms of the 
> license that accompanies the media.            If the license is 
> purchased under contract NMA 301 99 D003, use is              in 
> accordance with the license therein
>   NITF_IC=C8
>   NITF_IMODE=B
>   NITF_IDLVL=1
>   NITF_IALVL=0
>   NITF_ILOC_ROW=0
>   NITF_ILOC_COLUMN=0
>   NITF_CCS_ROW=0
>   NITF_CCS_COLUMN=0
>   NITF_IMAG=1.0
> Image Structure Metadata:
>   COMPRESSION=JPEG2000
> Subdatasets:
>   SUBDATASET_1_NAME=NITF_IM:0:test1.ntf
>   SUBDATASET_1_DESC=Image 1 of test1.ntf
>   SUBDATASET_2_NAME=NITF_IM:1:test1.ntf
>   SUBDATASET_2_DESC=Image 2 of test1.ntf
> RPC Metadata:
>   LINE_OFF=13513
>   LINE_SCALE=13856
>   SAMP_OFF=17568
>   SAMP_SCALE=17880
>   LONG_OFF=151.9233
>   LONG_SCALE=0.1053
>   LAT_OFF=-21.0572
>   LAT_SCALE=0.094
>   HEIGHT_OFF=56
>   HEIGHT_SCALE=500
>   LINE_NUM_COEFF=-0.0004377388 0.1957893 -1.171648 0.02476541 
> 0.0004988891 1.071111e-06 -7.723183e-05 -0.0001365399 0.0001504459 
> -3.044538e-07 -5.480692e-07 2.582038e-06 2.00101e-05 3.445864e-06 
> -1.734241e-05 -7.362311e-05 -2.064705e-05 3.295859e-07 3.97851e-06 
> 2.958957e-07
>   LINE_DEN_COEFF=1 0.0006958351 -0.0004343016 -7.94123e-05 3.205817e-05 
> -6.129374e-07 2.904883e-06 1.144677e-05 -6.601517e-05 1.76217e-05 
> 2.432827e-07 1.147129e-07 3.2925e-07 3.846231e-08 -8.681516e-07 
> 9.004578e-06 -1.561498e-07 0 -1.282879e-06 3.197183e-07
>   SAMP_NUM_COEFF=-0.005897845 0.9845455 -0.0008736188 -0.01633278 
> -0.0005572224 0.0004192778 -0.0001797468 0.006762 3.550668e-05 
> -2.729457e-06 -2.47284e-06 2.339311e-05 -1.283381e-05 -5.962048e-06 
> 4.604063e-05 8.796591e-06 1.358451e-08 5.049965e-06 -1.806894e-08 0
>   SAMP_DEN_COEFF=1 -0.0008445728 0.000539573 -0.0005092088 -3.422971e-05 
> -3.243685e-06 1.062892e-06 5.948981e-06 1.065874e-05 -6.439563e-06 
> -5.457996e-08 0 -3.445098e-07 3.646394e-08 -7.223879e-07 1.128396e-06 0 
> -3.12891e-08 -4.239271e-08 0
>   MIN_LONG=151.87065
>   MAX_LONG=151.97595
>   MIN_LAT=-21.1042
>   MAX_LAT=-21.0102
> Corner Coordinates:
> Upper Left  ( 151.8181221, -20.9946504) (151d49'5.24"E, 20d59'40.74"S)
> Lower Left  ( 151.8179832, -21.1511838) (151d49'4.74"E, 21d 9'4.26"S)
> Upper Right ( 152.0285446, -20.9633995) (152d 1'42.76"E, 20d57'48.24"S)
> Lower Right ( 152.0284057, -21.1199330) (152d 1'42.26"E, 21d 7'11.76"S)
> Center      ( 151.9232639, -21.0572917) (151d55'23.75"E, 21d 3'26.25"S)
> Band 1 Block=35840x1 Type=UInt16, ColorInterp=Gray
>   Overviews: arbitrary
> 
> 
> gdal_translate --formats
> Supported Formats:
>   VRT (rw+): Virtual Raster
>   GTiff (rw+v): GeoTIFF
>   NITF (rw+v): National Imagery Transmission Format
>   RPFTOC (ro): Raster Product Format TOC format
>   HFA (rw+v): Erdas Imagine Images (.img)
>   SAR_CEOS (ro): CEOS SAR Image
>   CEOS (ro): CEOS Image
>   JAXAPALSAR (ro): JAXA PALSAR Product Reader (Level 1.1/1.5)
>   GFF (rov): Ground-based SAR Applications Testbed File Format (.gff)
>   ELAS (rw+): ELAS
>   AIG (ro): Arc/Info Binary Grid
>   AAIGrid (rwv): Arc/Info ASCII Grid
>   SDTS (ro): SDTS Raster
>   OGDI (ro): OGDI Bridge
>   DTED (rwv): DTED Elevation Raster
>   PNG (rwv): Portable Network Graphics
>   JPEG (rwv): JPEG JFIF
>   MEM (rw+): In Memory Raster
>   JDEM (ro): Japanese DEM (.mem)
>   GIF (rwv): Graphics Interchange Format (.gif)
>   BIGGIF (rov): Graphics Interchange Format (.gif)
>   ESAT (ro): Envisat Image Format
>   FITS (rw+): Flexible Image Transport System
>   BSB (ro): Maptech BSB Nautical Charts
>   XPM (rw): X11 PixMap Format
>   BMP (rw+v): MS Windows Device Independent Bitmap
>   DIMAP (ro): SPOT DIMAP
>   AirSAR (ro): AirSAR Polarimetric Image
>   RS2 (ro): RadarSat 2 XML Product
>   PCIDSK (rw+v): PCIDSK Database File
>   PCRaster (rw): PCRaster Raster File
>   ILWIS (rw+v): ILWIS Raster Map
>   SGI (rw+): SGI Image File Format 1.0
>   SRTMHGT (rwv): SRTMHGT File Format
>   Leveller (rw+): Leveller heightfield
>   Terragen (rw+): Terragen heightfield
>   GMT (rw): GMT NetCDF Grid Format
>   netCDF (rw): Network Common Data Format
>   HDF4 (ro): Hierarchical Data Format Release 4
>   HDF4Image (rw+): HDF4 Dataset
>   ISIS3 (ro): USGS Astrogeology ISIS cube (Version 3)
>   ISIS2 (ro): USGS Astrogeology ISIS cube (Version 2)
>   PDS (ro): NASA Planetary Data System
>   TIL (ro): EarthWatch .TIL
>   ERS (rw+): ERMapper .ers Labelled
>   ECW (rw): ERMapper Compressed Wavelets
>   JP2ECW (rw+): ERMapper JPEG2000
>   JPEG2000 (rwv): JPEG-2000 part 1 (ISO/IEC 15444-1)
>   L1B (ro): NOAA Polar Orbiter Level 1b Data Set
>   FIT (rw): FIT Image
>   GRIB (ro): GRIdded Binary (.grb)
>   MrSID (ro): Multi-resolution Seamless Image Database (MrSID)
>   RMF (rw+): Raster Matrix Format
>   WCS (ro): OGC Web Coverage Service
>   WMS (ro): OGC Web Map Service
>   MSGN (ro): EUMETSAT Archive native (.nat)
>   RST (rw+): Idrisi Raster A.1
>   INGR (rw+): Intergraph Raster
>   GSAG (rw): Golden Software ASCII Grid (.grd)
>   GSBG (rw+): Golden Software Binary Grid (.grd)
>   GS7BG (ro): Golden Software 7 Binary Grid (.grd)
>   COSAR (ro): COSAR Annotated Binary Matrix (TerraSAR-X)
>   TSX (ro): TerraSAR-X Product
>   COASP (ro): DRDC COASP SAR Processor Raster
>   R (rwv): R Object Data Store
>   PNM (rw+): Portable Pixmap Format (netpbm)
>   DOQ1 (ro): USGS DOQ (Old Style)
>   DOQ2 (ro): USGS DOQ (New Style)
>   ENVI (rw+v): ENVI .hdr Labelled
>   EHdr (rw+v): ESRI .hdr Labelled
>   GenBin (ro): Generic Binary (.hdr Labelled)
>   PAux (rw+): PCI .aux Labelled
>   MFF (rw+): Vexcel MFF Raster
>   MFF2 (rw+): Vexcel MFF2 (HKV) Raster
>   FujiBAS (ro): Fuji BAS Scanner Image
>   GSC (ro): GSC Geogrid
>   FAST (ro): EOSAT FAST Format
>   BT (rw+): VTP .bt (Binary Terrain) 1.3 Format
>   LAN (ro): Erdas .LAN/.GIS
>   CPG (ro): Convair PolGASP
>   IDA (rw+): Image Data and Analysis
>   NDF (ro): NLAPS Data Format
>   EIR (ro): Erdas Imagine Raw
>   DIPEx (ro): DIPEx
>   LCP (rov): FARSITE v.4 Landscape File (.lcp)
>   RIK (ro): Swedish Grid RIK (.rik)
>   USGSDEM (rw): USGS Optional ASCII DEM (and CDED)
>   GXF (ro): GeoSoft Grid Exchange Format
>   HTTP (ro): HTTP Fetching Wrapper
>   BAG (ro): Bathymetry Attributed Grid
>   HDF5 (ro): Hierarchical Data Format Release 5
>   HDF5Image (ro): HDF5 Dataset
>   NWT_GRD (ro): Northwood Numeric Grid Format .grd/.tab
>   NWT_GRC (ro): Northwood Classified Grid Format .grc/.tab
>   ADRG (rw+v): ARC Digitized Raster Graphics
>   SRP (rov): Standard Raster Product (ASRP/USRP)
>   BLX (rw): Magellan topo (.blx)
>   Rasterlite (rw): Rasterlite
>   WKTRaster (ro): PostGIS WKT Raster driver
>   SAGA (rw+v): SAGA GIS Binary Grid (.sdat)
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
> 
> 

-- 
========= mailto:dboyd at data-tactics.com ============
David W. Boyd
Director, Engineering, Research and Development
Data Tactics Corporation
7901 Jones Branch, Suite 240
Mclean, VA 22102
office:   +1-703-506-3735, ext 308
fax:     +1-703-506-6703
cell:     +1-703-402-7908
============== http://www.data-tactics.com/ ============


The information contained in this message may be privileged
and/or confidential and protected from disclosure.
If the reader of this message is not the intended recipient
or an employee or agent responsible for delivering this message
to the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication
is strictly prohibited.  If you have received this communication
in error, please notify the sender immediately by replying to
this message and deleting the material from any computer.




More information about the gdal-dev mailing list