|
OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossim/base/ossimGeoref.h>#include <cstdlib>#include <cstring>#include <cstdio>#include <cmath>#include <cctype>Go to the source code of this file.
Macros | |
| #define | GEOREF_NO_ERROR 0x0000 |
| #define | GEOREF_LAT_ERROR 0x0001 |
| #define | GEOREF_LON_ERROR 0x0002 |
| #define | GEOREF_STR_ERROR 0x0004 |
| #define | GEOREF_STR_LAT_ERROR 0x0008 |
| #define | GEOREF_STR_LON_ERROR 0x0010 |
| #define | GEOREF_STR_LAT_MIN_ERROR 0x0020 |
| #define | GEOREF_STR_LON_MIN_ERROR 0x0040 |
| #define | GEOREF_PRECISION_ERROR 0x0080 |
| #define | TRUE 1 |
| #define | FALSE 0 |
| #define | LATITUDE_LOW -90 /* Minimum latitude */ |
| #define | LATITUDE_HIGH 90 /* Maximum latitude */ |
| #define | LONGITUDE_LOW -180 /* Minimum longitude */ |
| #define | LONGITUDE_HIGH 360 /* Maximum longitude */ |
| #define | MIN_PER_DEG 60 /* Number of minutes per degree */ |
| #define | GEOREF_MINIMUM 4 /* Minimum number of chars for GEOREF */ |
| #define | GEOREF_MAXIMUM 14 /* Maximum number of chars for GEOREF */ |
| #define | GEOREF_LETTERS 4 /* Number of letters in GEOREF string */ |
| #define | MAX_PRECISION 5 /* Maximum precision of minutes part */ |
| #define | LETTER_I 8 /* Index for letter I */ |
| #define | LETTER_M 12 /* Index for letter M */ |
| #define | LETTER_O 14 /* Index for letter O */ |
| #define | LETTER_Q 16 /* Index for letter Q */ |
| #define | LETTER_Z 25 /* Index for letter Z */ |
| #define | LETTER_A_OFFSET 65 /* Letter A offset in character set */ |
| #define | ZERO_OFFSET 48 /* Number zero offset in character set */ |
| #define | PI 3.14159265358979323e0 /* PI */ |
| #define | DEGREE_TO_RADIAN (PI / 180.0) |
| #define | RADIAN_TO_DEGREE (180.0 / PI) |
| #define | QUAD 15 /* Degrees per grid square */ |
| #define | ROUND_ERROR 0.0000005 /* Rounding factor */ |
Functions | |
| long | Extract_Degrees (char *georef, double *latitude, double *longitude) |
| long | Extract_Minutes (char *georef, long start, long length, long ERROR_TYPE, double *minutes) |
| long | Round_GEOREF (double value) |
| void | Convert_Minutes_To_String (double minutes, long precision, char *str) |
| #define DEGREE_TO_RADIAN (PI / 180.0) |
Definition at line 89 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_GEOREF_To_Geodetic().
| #define FALSE 0 |
Definition at line 71 of file ossimGeoref.cpp.
| #define GEOREF_LAT_ERROR 0x0001 |
Definition at line 15 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_Geodetic_To_GEOREF().
| #define GEOREF_LETTERS 4 /* Number of letters in GEOREF string */ |
Definition at line 79 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_Geodetic_To_GEOREF(), ossimGeoref::Convert_GEOREF_To_Geodetic(), Extract_Degrees(), and Extract_Minutes().
| #define GEOREF_LON_ERROR 0x0002 |
Definition at line 16 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_Geodetic_To_GEOREF().
Definition at line 78 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_GEOREF_To_Geodetic(), and Extract_Minutes().
Definition at line 77 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_GEOREF_To_Geodetic().
| #define GEOREF_NO_ERROR 0x0000 |
Definition at line 14 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_Geodetic_To_GEOREF(), ossimGeoref::Convert_GEOREF_To_Geodetic(), Extract_Degrees(), Extract_Minutes(), ossimGeoref::ossimGeoref(), and ossimGeoref::toString().
| #define GEOREF_PRECISION_ERROR 0x0080 |
Definition at line 22 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_Geodetic_To_GEOREF().
| #define GEOREF_STR_ERROR 0x0004 |
Definition at line 17 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_GEOREF_To_Geodetic().
| #define GEOREF_STR_LAT_ERROR 0x0008 |
Definition at line 18 of file ossimGeoref.cpp.
Referenced by Extract_Degrees().
| #define GEOREF_STR_LAT_MIN_ERROR 0x0020 |
Definition at line 20 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_GEOREF_To_Geodetic().
| #define GEOREF_STR_LON_ERROR 0x0010 |
Definition at line 19 of file ossimGeoref.cpp.
Referenced by Extract_Degrees().
| #define GEOREF_STR_LON_MIN_ERROR 0x0040 |
Definition at line 21 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_GEOREF_To_Geodetic().
| #define LATITUDE_HIGH 90 /* Maximum latitude */ |
Definition at line 73 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_Geodetic_To_GEOREF().
| #define LATITUDE_LOW -90 /* Minimum latitude */ |
Definition at line 72 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_Geodetic_To_GEOREF(), and ossimGeoref::Convert_GEOREF_To_Geodetic().
| #define LETTER_A_OFFSET 65 /* Letter A offset in character set */ |
Definition at line 86 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_Geodetic_To_GEOREF(), and Extract_Degrees().
| #define LETTER_I 8 /* Index for letter I */ |
Definition at line 81 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_Geodetic_To_GEOREF(), and Extract_Degrees().
| #define LETTER_M 12 /* Index for letter M */ |
Definition at line 82 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_Geodetic_To_GEOREF().
| #define LETTER_O 14 /* Index for letter O */ |
Definition at line 83 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_Geodetic_To_GEOREF(), and Extract_Degrees().
| #define LETTER_Q 16 /* Index for letter Q */ |
Definition at line 84 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_Geodetic_To_GEOREF().
| #define LETTER_Z 25 /* Index for letter Z */ |
Definition at line 85 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_Geodetic_To_GEOREF().
| #define LONGITUDE_HIGH 360 /* Maximum longitude */ |
Definition at line 75 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_Geodetic_To_GEOREF().
| #define LONGITUDE_LOW -180 /* Minimum longitude */ |
Definition at line 74 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_Geodetic_To_GEOREF(), and ossimGeoref::Convert_GEOREF_To_Geodetic().
| #define MAX_PRECISION 5 /* Maximum precision of minutes part */ |
Definition at line 80 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_Geodetic_To_GEOREF().
| #define MIN_PER_DEG 60 /* Number of minutes per degree */ |
Definition at line 76 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_Geodetic_To_GEOREF(), ossimGeoref::Convert_GEOREF_To_Geodetic(), and Extract_Minutes().
| #define PI 3.14159265358979323e0 /* PI */ |
Definition at line 88 of file ossimGeoref.cpp.
Referenced by ossimplugins::RectangularCoordinate::AsGeodesicCoordinates(), and ossimplugins::GalileanEphemeris::p2nutt().
| #define QUAD 15 /* Degrees per grid square */ |
Definition at line 91 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_Geodetic_To_GEOREF(), and Extract_Degrees().
| #define RADIAN_TO_DEGREE (180.0 / PI) |
Definition at line 90 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_Geodetic_To_GEOREF().
| #define ROUND_ERROR 0.0000005 /* Rounding factor */ |
Definition at line 92 of file ossimGeoref.cpp.
Referenced by ossimGeoref::Convert_Geodetic_To_GEOREF().
| #define TRUE 1 |
Definition at line 70 of file ossimGeoref.cpp.
| #define ZERO_OFFSET 48 /* Number zero offset in character set */ |
Definition at line 87 of file ossimGeoref.cpp.
| void Convert_Minutes_To_String | ( | double | minutes, |
| long | precision, | ||
| char * | str | ||
| ) |
Definition at line 206 of file ossimGeoref.cpp.
References min, and Round_GEOREF().
Referenced by ossimGeoref::Convert_Geodetic_To_GEOREF().
| long Extract_Degrees | ( | char * | georef, |
| double * | latitude, | ||
| double * | longitude | ||
| ) |
Definition at line 101 of file ossimGeoref.cpp.
References GEOREF_LETTERS, GEOREF_NO_ERROR, GEOREF_STR_LAT_ERROR, GEOREF_STR_LON_ERROR, LETTER_A_OFFSET, LETTER_I, LETTER_O, and QUAD.
Referenced by ossimGeoref::Convert_GEOREF_To_Geodetic().
| long Extract_Minutes | ( | char * | georef, |
| long | start, | ||
| long | length, | ||
| long | ERROR_TYPE, | ||
| double * | minutes | ||
| ) |
Definition at line 151 of file ossimGeoref.cpp.
References GEOREF_LETTERS, GEOREF_MAXIMUM, GEOREF_NO_ERROR, and MIN_PER_DEG.
Referenced by ossimGeoref::Convert_GEOREF_To_Geodetic().
| long Round_GEOREF | ( | double | value | ) |
Definition at line 193 of file ossimGeoref.cpp.
Referenced by Convert_Minutes_To_String().
1.8.14