IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 10, 2008, 5:06:08 PM (18 years ago)
Author:
bills
Message:

changes to support get image (non postage stamp) jobs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/src/pstamprequest.c

    r16898 r16933  
    105105    psMetadata *md = psMetadataAlloc();
    106106    int         argnum;
    107     bool        gotStyle = false;
     107    bool        gotStyle  = false;
    108108    bool        needCoord = false;
    109109    bool        gotCenter = false;
    110     bool        gotRange = false;
    111     bool        needROI = true;
     110    bool        gotRange  = false;
     111    bool        needROI   = true;
    112112    bool        makeStamps = true;
    113113
     
    116116    psMetadataAdd (md, PS_LIST_TAIL, "VERSION", PS_DATA_STRING, "", STAMP_REQUEST_VERSION);
    117117
     118    // These mode arguments should be consistent with pstampparse
    118119    if ((argnum = psArgumentGet(argc, argv, "-list"))) {
    119         psMetadataAdd (md, PS_LIST_TAIL, "CMD_MODE", PS_DATA_STRING, "", "LIST_URI");
     120        psMetadataAdd (md, PS_LIST_TAIL, "CMD_MODE", PS_DATA_STRING, "", "list_uri");
    120121        psArgumentRemove(argnum, &argc, argv);
    121122        // we don't need coordinates if we're listing unless mode is -bycoord. May be set true below.
     
    123124        makeStamps = false;
    124125    }
     126
     127    if ((argnum = psArgumentGet(argc, argv, "-get_image"))) {
     128        psMetadataAdd (md, PS_LIST_TAIL, "JOB_TYPE", PS_DATA_STRING, "", "get_image");
     129        psArgumentRemove(argnum, &argc, argv);
     130        // we don't need coordinates if we're listing unless mode is -bycoord. May be set true below.
     131        needROI = false;   
     132        makeStamps = false;
     133    } else {
     134        psMetadataAdd (md, PS_LIST_TAIL, "JOB_TYPE", PS_DATA_STRING, "", "stamp");
     135    }
     136
    125137
    126138    // get project from command line
Note: See TracChangeset for help on using the changeset viewer.