#6241 closed defect (fixed)

gdalinfo error when reading Digital Globe NITF

Reported by: dmedwrds Owned by: warmerdam
Priority: normal Milestone: 2.0.2
Component: default Version: 2.0.1
Severity: normal Keywords:
Cc:

Description (last modified by dmedwrds)

I am using GDAL v2.0.1 on Windows, built against OpenJPEG v2.0.

When I run gdalinfo on a Digital Globe NITF image with accompanying metadata files (.att, .eph, .geo, and so on), I am getting an error message. However, when I run gdalinfo on the same NITF image in a directory by itself, I do not see the error message. I believe this might indicate a problem with the Digital Globe metadata reader.

The error message is:

ERROR 3: Cannot read 258523934 bytes

where 258523934 is the number of bytes in the first image segment in the NITF file. I have attached the output from running the command:

gdalinfo --debug on -nomd -nogcp 15OCT03110633-P1BS_R1C1-500380496130_01_P001.NTF

The gdal_failure.txt file is the output when I run the command in a directory containing the image and the associated metadata files. The gdal_success.txt file is the output from exactly the same command run on exactly the same image file, when the image file is in a directory by itself.

Attachments (2)

gdal_failure.txt (1.9 KB) - added by dmedwrds 16 months ago.
Output from call to gdalinfo with error case.
gdal_success.txt (1.2 KB) - added by dmedwrds 16 months ago.
Output from successful call to gdalinfo.

Download all attachments as: .zip

Change History (6)

Changed 16 months ago by dmedwrds

Attachment: gdal_failure.txt added

Output from call to gdalinfo with error case.

Changed 16 months ago by dmedwrds

Attachment: gdal_success.txt added

Output from successful call to gdalinfo.

comment:1 Changed 16 months ago by dmedwrds

Description: modified (diff)

comment:2 Changed 16 months ago by Even Rouault

I believe this should be fixed by trunk r31769, branches/2.0 r31770 "MDReader: do no attempt reading side-car files on /vsisubfile/ (#6241)". Could you confirm ?

comment:3 Changed 16 months ago by dmedwrds

Confirmed that this fixes the issue I was seeing. Thank you!

comment:4 Changed 16 months ago by Even Rouault

Milestone: 2.0.2
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.