In ogdi/drivers/rpf/utils.c:
NITF header length detection:
if (strcmp(NITF, "NITF") == 0) /* Match: skip NITF hdr */
{
fseek(fin,413, SEEK_SET) ;
fseek(fin, 31, SEEK_CUR) ; /* Key off date, pos 32 in RPF header */
fread( date, sizeof(date), 1, fin);
if (strncmp(date,"199",3) == 0) /* Check for short 413 hdr */
file->NITF_hdr_len = 413L;
else.
2009-07-25 15:23:25 UTC by nobody