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 |
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)
Change History (2)
by , 16 years ago
Attachment: | gdal_svn_trunk_nitf_nm_panblockstart.patch added |
---|
comment:1 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
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.