IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 3, 2015, 4:16:29 PM (11 years ago)
Author:
eugene
Message:

merge changes from eam_branches/ipp-20151113

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/Ohana

  • trunk/Ohana/src/libdvo/src/coordops.c

    r38553 r39225  
    990990
    991991OhanaProjection GetProjection (char *ctype) {
    992   if (!strcmp(&ctype[4], "-ZEA")) return PROJ_ZEA;
    993   if (!strcmp(&ctype[4], "-ZPL")) return PROJ_ZPL;
    994   if (!strcmp(&ctype[4], "-ZPN")) return PROJ_ZPN;
    995   if (!strcmp(&ctype[4], "-ARC")) return PROJ_ARC;
    996   if (!strcmp(&ctype[4], "-STG")) return PROJ_STG;
    997   if (!strcmp(&ctype[4], "-SIN")) return PROJ_SIN;
    998   if (!strcmp(&ctype[0], "MM"))   return PROJ_SIN; // note ctype[0]
    999   if (!strcmp(&ctype[4], "-TAN")) return PROJ_TAN;
    1000   if (!strcmp(&ctype[4], "-TNX")) return PROJ_TNX;
    1001   if (!strcmp(&ctype[4], "-DIS")) return PROJ_DIS;
    1002   if (!strcmp(&ctype[4], "-LIN")) return PROJ_LIN;
    1003   if (!strcmp(&ctype[0], "GENE")) return PROJ_LIN; // note ctype[0]
    1004   if (!strcmp(&ctype[4], "-PLY")) return PROJ_PLY;
    1005   if (!strcmp(&ctype[4], "-WRP")) return PROJ_WRP;
    1006   if (!strcmp(&ctype[4], "-AIT")) return PROJ_AIT;
    1007   if (!strcmp(&ctype[4], "-GLS")) return PROJ_GLS;
    1008   if (!strcmp(&ctype[4], "-PAR")) return PROJ_PAR;
     992  if (!strncmp(&ctype[4], "-ZEA", 4)) return PROJ_ZEA;
     993  if (!strncmp(&ctype[4], "-ZPL", 4)) return PROJ_ZPL;
     994  if (!strncmp(&ctype[4], "-ZPN", 4)) return PROJ_ZPN;
     995  if (!strncmp(&ctype[4], "-ARC", 4)) return PROJ_ARC;
     996  if (!strncmp(&ctype[4], "-STG", 4)) return PROJ_STG;
     997  if (!strncmp(&ctype[4], "-SIN", 4)) return PROJ_SIN;
     998  if (!strncmp(&ctype[0], "MM", 2))   return PROJ_SIN; // note ctype[0]
     999  if (!strncmp(&ctype[4], "-TAN", 4)) return PROJ_TAN;
     1000  if (!strncmp(&ctype[4], "-TNX", 4)) return PROJ_TNX;
     1001  if (!strncmp(&ctype[4], "-DIS", 4)) return PROJ_DIS;
     1002  if (!strncmp(&ctype[4], "-LIN", 4)) return PROJ_LIN;
     1003  if (!strncmp(&ctype[0], "GENE", 4)) return PROJ_LIN; // note ctype[0]
     1004  if (!strncmp(&ctype[4], "-PLY", 4)) return PROJ_PLY;
     1005  if (!strncmp(&ctype[4], "-WRP", 4)) return PROJ_WRP;
     1006  if (!strncmp(&ctype[4], "-AIT", 4)) return PROJ_AIT;
     1007  if (!strncmp(&ctype[4], "-GLS", 4)) return PROJ_GLS;
     1008  if (!strncmp(&ctype[4], "-PAR", 4)) return PROJ_PAR;
    10091009  return PROJ_NONE;
    10101010}
Note: See TracChangeset for help on using the changeset viewer.