IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 15, 2007, 11:59:31 AM (19 years ago)
Author:
magnier
Message:

creating pmConceptsFilterIDfromConcept

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfile.c

    r10966 r11104  
    254254    if (strstr (newName, "{FILTER.ID}") != NULL) {
    255255        if (file->fpa != NULL) {
    256             char *filterName = psMetadataLookupStr (NULL, file->fpa->concepts, "FPA.FILTER");
    257             psMetadata *filterTable = psMetadataLookupPtr (NULL, file->camera, "FILTER.ID");
    258             if (filterName && *filterName && filterTable) {
    259                 char *ID = psMetadataLookupStr (NULL, filterTable, filterName);
    260                 if (ID && *ID) {
    261                     psStringSubstitute(&newName, ID, "{FILTER.ID}");
    262                 }
     256            char *filterID = pmConceptsFilterIDfromConcept ("FPA.FILTER", file->fpa->concepts, file->camera);
     257            if (filterID && *filterID) {
     258                psStringSubstitute(&newName, filterID, "{FILTER.ID}");
    263259            }
    264260        }
Note: See TracChangeset for help on using the changeset viewer.