Opened 16 years ago

Closed 15 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


NITF driver fails on and

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 16 years ago.

Download all attachments as: .zip

Change History (2)

by Even Rouault, 16 years ago

comment:1 by warmerdam, 15 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.