IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26163


Ignore:
Timestamp:
Nov 16, 2009, 6:30:10 PM (16 years ago)
Author:
eugene
Message:

handle extensions which are not tables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091113/psModules/src/objects/pmSourceIO.c

    r25907 r26163  
    980980        if (!tableHeader) psAbort("cannot read table header");
    981981
     982        char *xtension = psMetadataLookupStr (NULL, tableHeader, "XTENSION");
     983        if (!xtension) psAbort("cannot read table type");
     984        if (strcmp (xtension, "BINTABLE")) {
     985            psWarning ("no binary table in extension %s, skipping\n", dataname);
     986            return false;
     987        }
     988
    982989        char *exttype = psMetadataLookupStr (NULL, tableHeader, "EXTTYPE");
    983990        if (!exttype) psAbort("cannot read table type");
Note: See TracChangeset for help on using the changeset viewer.