Enumerations | |
| enum | DEGTOSTRFLAGS { DEGTOSTRFLAG_NoDir = 0x00000000, DEGTOSTRFLAG_Longitude = 0x00000001, DEGTOSTRFLAG_Latitude = 0x00000002, DEGTOSTRFLAG_DirLast = 0x00000010, DEGTOSTRFLAG_DecDegs = 0x00000020, DEGTOSTRFLAG_DegDecMin = 0x00000040, DEGTOSTRFLAG_DegMinSec = 0x00000080, DEGTOSTRFLAG_Longitude360 = 0x00000100, DEGTOSTRFLAG_AutoPrecision = 0x00000200 } |
Functions | |
| LIBEXPORT MISTRING | ConvertDegsToString (double value, DEGTOSTRFLAGS flags) |
| LIBEXPORT char * | ConvertDegsToString (char *string, double value, DEGTOSTRFLAGS flags) |
| LIBEXPORT bool | ConvertStringToDegs (const char *string, double *value) |
| LIBEXPORT void | ConvLatLonToString (double degrees, char *string, DMSTYPE desttype, CONVDMSFLAGS flags, double confidence) |
| LIBEXPORT void | ConvLatLonToString (double degrees, char *string, DMSTYPE desttype, CONVDMSFLAGS flags) |
| double | ConvLatLonValue (double value, DMSTYPE srctype) |
| LIBEXPORT double | ConvLatLonValue (const void *srcbuf, DMSTYPE srctype, void *destbuf, DMSTYPE desttype, CONVDMSFLAGS flags) |
| LIBEXPORT double | ConvStringToLatLon (const char *string, DMSTYPE srctype, CONVDMSFLAGS flags=CONVDMSFLAG_None) |
| LIBEXPORT const char ** | GetLatLonNames (void) |
| LIBEXPORT DMSTYPE | GetLatLonType (int index) |
| LIBEXPORT ERRVALUE | GetLatLonTypeList (SIMPLE_ARRAY< DMSTYPEANDNAME > &types) |
| LIBEXPORT MISTRING | GetLatLonTypeStrAbbr (DMSTYPE type, CONVDMSFLAGS flags=CONVDMSFLAG_OUT_PutSpaces) |
| enum DEGTOSTRFLAGS |
| LIBEXPORT MISTRING ConvertDegsToString | ( | double | value, | |
| DEGTOSTRFLAGS | flags | |||
| ) |
Convert Latitude or Longitude value to MISTRING.
| value | Value to convert in degrees | |
| flags | Flags defining format |
| LIBEXPORT char* ConvertDegsToString | ( | char * | string, | |
| double | value, | |||
| DEGTOSTRFLAGS | flags | |||
| ) |
Convert Latitude or Longitude value to char* string.
| string | String to hold result | |
| value | Value to convert in degrees | |
| flags | Flags defining format |
| LIBEXPORT bool ConvertStringToDegs | ( | const char * | string, | |
| double * | value | |||
| ) |
Convert Latitude or Longitude string to decimal degrees.
This function automatically recognizes the following formats:
D ddd mm ss.sss D indicates hemisphere (N, S, E or W) D ddd mm.mmmm and can be anywhere in the string D ddd.ddddd
[-]ddd mm ss.sss Sign (+ or -) is optional [-]ddd mm.mmmm Negative values indicate West and South [-]ddd.ddddd Do not type brackets []
| LIBEXPORT void ConvLatLonToString | ( | double | degrees, | |
| char * | string, | |||
| DMSTYPE | desttype, | |||
| CONVDMSFLAGS | flags, | |||
| double | confidence | |||
| ) |
Convert Latitude/Longitude value to string with precision based on confidence value.
The "confidence" parameter should be based on the accuracy at which the value can be determined. For example, if converting from screen coordinates it would be based on the difference (in degrees) between two neighboring pixel coordinates. A value of zero will be considered "unknown" and the precision will be determined from the "desttype" parameter.
| degrees | Value to convert | |
| string | String to hold result | |
| desttype | Destination format | |
| flags | CONVDMS_OUT_... | |
| confidence | Confidence value in degrees for determining report precision |
| LIBEXPORT void ConvLatLonToString | ( | double | degrees, | |
| char * | string, | |||
| DMSTYPE | desttype, | |||
| CONVDMSFLAGS | flags | |||
| ) |
Convert Latitude/Longitude value to string.
| degrees | Value to convert | |
| string | String to hold result | |
| desttype | Destination format | |
| flags | CONVDMS_OUT_... |
| double ConvLatLonValue | ( | double | value, | |
| DMSTYPE | srctype | |||
| ) | [inline] |
Convert double-precision value to decimal degrees.
| value | Value to convert | |
| srctype | Source format |
| LIBEXPORT double ConvLatLonValue | ( | const void * | srcbuf, | |
| DMSTYPE | srctype, | |||
| void * | destbuf, | |||
| DMSTYPE | desttype, | |||
| CONVDMSFLAGS | flags | |||
| ) |
Convert value to decimal degrees and/or another LatLon format.
| srcbuf | Pointer to source value, flags determine data type | |
| srctype | Source format | |
| destbuf | Pointer to destination location, NULL if not needed | |
| desttype | Destination format | |
| flags | Flags for input and output type |
| LIBEXPORT double ConvStringToLatLon | ( | const char * | string, | |
| DMSTYPE | srctype, | |||
| CONVDMSFLAGS | flags = CONVDMSFLAG_None | |||
| ) |
Convert string to decimal degrees.
| string | String to convert | |
| srctype | String format | |
| flags | None presently used |
| LIBEXPORT const char** GetLatLonNames | ( | void | ) |
Retrieve list of built-in latitude-longitude string formats.
| LIBEXPORT DMSTYPE GetLatLonType | ( | int | index | ) |
Get latitude-longitude format conversion type for given index.
| LIBEXPORT ERRVALUE GetLatLonTypeList | ( | SIMPLE_ARRAY< DMSTYPEANDNAME > & | types | ) |
Retrieve list of built-in latitude-longitude string formats.
| LIBEXPORT MISTRING GetLatLonTypeStrAbbr | ( | DMSTYPE | type, | |
| CONVDMSFLAGS | flags = CONVDMSFLAG_OUT_PutSpaces | |||
| ) |
Get string for showing format type.
1.6.1