IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 19, 2009, 3:28:01 PM (17 years ago)
Author:
Paul Price
Message:

Only write + sign for declination

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/concepts/pmConceptsStandard.c

    r25131 r25132  
    451451        small = (float)((int)(small * 1000.0)) / 1000.0;
    452452        psString coordString = NULL;        // String with the coordinates in sexagesimal format
    453         psStringAppend(&coordString, "%c%02d:%02d:%06.3f", negative ? '-' : '+', big, medium, small);
     453        psStringAppend(&coordString, "%s%02d:%02d:%06.3f",
     454                       negative ? "-" : (strcmp(concepts->name, "FPA.DEC") == 0 ? "+" : ""),
     455                       big, medium, small);
    454456        coordItem = psMetadataItemAllocStr(concept->name, concept->comment, coordString);
    455457        psFree(coordString);
Note: See TracChangeset for help on using the changeset viewer.