Opened 17 years ago

Closed 16 years ago

#1855 closed defect (fixed)

[PATCH] NITF i_3301c.ntf i_3301k.ntf

Reported by: Even Rouault Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: NITF
Cc:

Description

NITF driver fails on http://www.gwg.nga.mil/ntb/baseline/software/testfile/Nitfv2_1/i_3301c.ntf and http://www.gwg.nga.mil/ntb/baseline/software/testfile/Nitfv2_1/i_3301k.ntf

The attached patch changes the way that psImage->panBlockStart[iBlock] is computed to be more robust to different IMODE values when psImage->szIC == "NM". This fixes the problems on the two images.

Attachments (1)

gdal_svn_trunk_nitf_nm_panblockstart.patch (2.1 KB ) - added by Even Rouault 17 years ago.

Download all attachments as: .zip

Change History (2)

by Even Rouault, 17 years ago

comment:1 by warmerdam, 16 years ago

Resolution: fixed
Status: newclosed

I have confirmed the problem with i_3301k.ntf, but i_3301c.ntf seemed to be working fine as it was. I believe this patch can be summarized as fixing block offset computations for IC=NM, and IMODE=R data.

The patch (with a small adjustment to error reporting) committed in trunk as r12923. It is also likely suitable for 1.4 branch, but I lack the guts to apply it currently.

Note: See TracTickets for help on using tickets.