Share

Open Geospatial Data Interface

Code

Programming Languages: C

Repositories

browse code, statistics cvs -d:pserver:anonymous@ogdi.cvs.sourceforge.net:/cvsroot/ogdi login

cvs -z3 -d:pserver:anonymous@ogdi.cvs.sourceforge.net:/cvsroot/ogdi co -P modulename

Show:

What's happening?

  • Comment: NITF header length detection

    Further research finds that the newest version of mil-std-2411 was released on March 28, 2000, which is the date the Erdas Imagine archive has in its header. I would suggest using the filename field rather than the date to detect the length of the NITF header: const char * find_last_of(const char *haystack, char needle) { const char *last_ptr = 0; const char *cur_ptr = haystack; while (...

    2009-07-25 17:28:55 UTC by nobody

  • NITF header length detection

    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