Changeset 19889 for trunk/psModules/src/concepts/pmConceptsStandard.c
- Timestamp:
- Oct 3, 2008, 12:50:47 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/concepts/pmConceptsStandard.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/concepts/pmConceptsStandard.c
r19724 r19889 334 334 coords -= medium / 60.0; 335 335 small = 3600.0 * coords; 336 small = (float)((int)(small * 100 .0)) / 100.0;336 small = (float)((int)(small * 1000.0)) / 1000.0; 337 337 if (negative) { 338 338 big *= -1; 339 339 } 340 340 psString coordString = NULL; // String with the coordinates in sexagesimal format 341 psStringAppend(&coordString, "%d:%02d:%0 5.2f", big, medium, small);341 psStringAppend(&coordString, "%d:%02d:%06.3f", big, medium, small); 342 342 psMetadataItem *coordItem = psMetadataItemAllocStr(concept->name, concept->comment, coordString); 343 343 psFree(coordString);
Note:
See TracChangeset
for help on using the changeset viewer.
