OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimGeoref.h>
Public Member Functions | |
ossimGeoref (const ossimString &georefString, long precision) | |
ossimGeoref (const ossimGpt &groundPt) | |
ossimGeoref () | |
ossimString | toString (long precision) |
Private Member Functions | |
long | Convert_Geodetic_To_GEOREF (double Latitude, double Longitude, long Precision, char *georef) |
long | Convert_GEOREF_To_Geodetic (char *georef, double *Latitude, double *Longitude) |
Private Attributes | |
ossimGpt | thePt |
Definition at line 6 of file ossimGeoref.h.
ossimGeoref::ossimGeoref | ( | const ossimString & | georefString, |
long | precision | ||
) |
Definition at line 25 of file ossimGeoref.cpp.
References ossimString::c_str(), Convert_GEOREF_To_Geodetic(), GEOREF_NO_ERROR, ossimGpt::latr(), ossimGpt::lonr(), and thePt.
ossimGeoref::ossimGeoref | ( | const ossimGpt & | groundPt | ) |
Definition at line 40 of file ossimGeoref.cpp.
References thePt.
ossimGeoref::ossimGeoref | ( | ) |
Definition at line 45 of file ossimGeoref.cpp.
|
private |
This function converts Geodetic (latitude and longitude in radians) coordinates to a GEOREF coordinate string. Precision specifies the number of digits in the GEOREF string for latitude and longitude: 0 for nearest degree 1 for nearest 10 minutes 2 for nearest minute 3 for nearest tenth of a minute 4 for nearest hundredth of a minute 5 for nearest thousandth of a minute
Latitude : Latitude in radians (input) Longitude : Longitude in radians (input) Precision : level of precision specified by the user (input) ossimGeoref : GEOREF coordinate string (output)
Definition at line 288 of file ossimGeoref.cpp.
References Convert_Minutes_To_String(), GEOREF_LAT_ERROR, GEOREF_LETTERS, GEOREF_LON_ERROR, GEOREF_NO_ERROR, GEOREF_PRECISION_ERROR, LATITUDE_HIGH, LATITUDE_LOW, LETTER_A_OFFSET, LETTER_I, LETTER_M, LETTER_O, LETTER_Q, LETTER_Z, LONGITUDE_HIGH, LONGITUDE_LOW, MAX_PRECISION, MIN_PER_DEG, QUAD, RADIAN_TO_DEGREE, and ROUND_ERROR.
Referenced by toString().
|
private |
This function converts a GEOREF coordinate string to Geodetic (latitude and longitude in radians) coordinates.
ossimGeoref : GEOREF coordinate string (input) Latitude : Latitude in radians (output) Longitude : Longitude in radians (output)
Definition at line 230 of file ossimGeoref.cpp.
References DEGREE_TO_RADIAN, Extract_Degrees(), Extract_Minutes(), GEOREF_LETTERS, GEOREF_MAXIMUM, GEOREF_MINIMUM, GEOREF_NO_ERROR, GEOREF_STR_ERROR, GEOREF_STR_LAT_MIN_ERROR, GEOREF_STR_LON_MIN_ERROR, LATITUDE_LOW, LONGITUDE_LOW, and MIN_PER_DEG.
Referenced by ossimGeoref().
ossimString ossimGeoref::toString | ( | long | precision | ) |
This function converts Geodetic (latitude and longitude in radians) coordinates to a GEOREF coordinate string. Precision specifies the number of digits in the GEOREF string for latitude and longitude: 0 for nearest degree 1 for nearest 10 minutes 2 for nearest minute 3 for nearest tenth of a minute 4 for nearest hundredth of a minute 5 for nearest thousandth of a minute
Precision : level of precision specified by the user (input) ossimGeoref : GEOREF coordinate string (return)
Definition at line 49 of file ossimGeoref.cpp.
References Convert_Geodetic_To_GEOREF(), GEOREF_NO_ERROR, ossimGpt::latr(), ossimGpt::lonr(), and thePt.
|
private |
Definition at line 31 of file ossimGeoref.h.
Referenced by ossimGeoref(), and toString().