#include <ctype.h>#include <math.h>#include <string.h>#include "UPS.h"#include "UTM.h"#include "MGRS.h"#include "CoordinateSystem.h"#include "EllipsoidParameters.h"#include "MGRSorUSNGCoordinates.h"#include "GeodeticCoordinates.h"#include "UPSCoordinates.h"#include "UTMCoordinates.h"#include "CoordinateConversionException.h"#include "ErrorMessages.h"#include "WarningMessages.h"Go to the source code of this file.
Classes | |
| struct | Latitude_Band |
| struct | UPS_Constant |
Defines | |
| #define | EPSILON 1.75e-7 |
| #define | LETTER_A 0 |
| #define | LETTER_B 1 |
| #define | LETTER_C 2 |
| #define | LETTER_D 3 |
| #define | LETTER_E 4 |
| #define | LETTER_F 5 |
| #define | LETTER_G 6 |
| #define | LETTER_H 7 |
| #define | LETTER_I 8 |
| #define | LETTER_J 9 |
| #define | LETTER_K 10 |
| #define | LETTER_L 11 |
| #define | LETTER_M 12 |
| #define | LETTER_N 13 |
| #define | LETTER_O 14 |
| #define | LETTER_P 15 |
| #define | LETTER_Q 16 |
| #define | LETTER_R 17 |
| #define | LETTER_S 18 |
| #define | LETTER_T 19 |
| #define | LETTER_U 20 |
| #define | LETTER_V 21 |
| #define | LETTER_W 22 |
| #define | LETTER_X 23 |
| #define | LETTER_Y 24 |
| #define | LETTER_Z 25 |
| #define | ONEHT 100000.e0 |
| #define | TWOMIL 2000000.e0 |
| #define | TRUE 1 |
| #define | FALSE 0 |
| #define | PI 3.14159265358979323e0 |
| #define | PI_OVER_2 (PI / 2.0e0) |
| #define | PI_OVER_180 (PI / 180.0e0) |
| #define | MIN_EASTING 100000.0 |
| #define | MAX_EASTING 900000.0 |
| #define | MIN_NORTHING 0.0 |
| #define | MAX_NORTHING 10000000.0 |
| #define | MAX_PRECISION 5 |
| #define | MIN_MGRS_NON_POLAR_LAT (-80.0 * ( PI / 180.0 )) |
| #define | MAX_MGRS_NON_POLAR_LAT ( 84.0 * ( PI / 180.0 )) |
| #define | MIN_EAST_NORTH 0.0 |
| #define | MAX_EAST_NORTH 3999999.0 |
| #define | _6 (6.0 * (PI / 180.0)) |
| #define | _8 (8.0 * (PI / 180.0)) |
| #define | _72 (72.0 * (PI / 180.0)) |
| #define | _80 (80.0 * (PI / 180.0)) |
| #define | _80_5 (80.5 * (PI / 180.0)) |
| #define | _84_5 (84.5 * (PI / 180.0)) |
| #define | _500000 500000.0 |
| #define | CLARKE_1866 "CC" |
| #define | CLARKE_1880 "CD" |
| #define | BESSEL_1841 "BR" |
| #define | BESSEL_1841_NAMIBIA "BN" |
Functions | |
| void | makeMGRSString (char *MGRSString, long zone, int letters[MGRS_LETTERS], double easting, double northing, long precision) |
| void | breakMGRSString (char *MGRSString, long *zone, long letters[MGRS_LETTERS], double *easting, double *northing, long *precision) |
Variables | |
| const Latitude_Band | Latitude_Band_Table [20] |
| const UPS_Constant | UPS_Constant_Table [4] |
| #define MAX_EAST_NORTH 3999999.0 |
| #define MAX_EASTING 900000.0 |
| #define MAX_NORTHING 10000000.0 |
| #define MAX_PRECISION 5 |
| #define MIN_EAST_NORTH 0.0 |
| #define MIN_EASTING 100000.0 |
| #define MIN_NORTHING 0.0 |
| #define PI_OVER_180 (PI / 180.0e0) |
| void breakMGRSString | ( | char * | MGRSString, | |
| long * | zone, | |||
| long | letters[MGRS_LETTERS], | |||
| double * | easting, | |||
| double * | northing, | |||
| long * | precision | |||
| ) |
| void makeMGRSString | ( | char * | MGRSString, | |
| long | zone, | |||
| int | letters[MGRS_LETTERS], | |||
| double | easting, | |||
| double | northing, | |||
| long | precision | |||
| ) |
| const Latitude_Band Latitude_Band_Table[20] |
{
{LETTER_C, 1100000.0, -72.0, -80.5, 0.0},
{LETTER_D, 2000000.0, -64.0, -72.0, 2000000.0},
{LETTER_E, 2800000.0, -56.0, -64.0, 2000000.0},
{LETTER_F, 3700000.0, -48.0, -56.0, 2000000.0},
{LETTER_G, 4600000.0, -40.0, -48.0, 4000000.0},
{LETTER_H, 5500000.0, -32.0, -40.0, 4000000.0},
{LETTER_J, 6400000.0, -24.0, -32.0, 6000000.0},
{LETTER_K, 7300000.0, -16.0, -24.0, 6000000.0},
{LETTER_L, 8200000.0, -8.0, -16.0, 8000000.0},
{LETTER_M, 9100000.0, 0.0, -8.0, 8000000.0},
{LETTER_N, 0.0, 8.0, 0.0, 0.0},
{LETTER_P, 800000.0, 16.0, 8.0, 0.0},
{LETTER_Q, 1700000.0, 24.0, 16.0, 0.0},
{LETTER_R, 2600000.0, 32.0, 24.0, 2000000.0},
{LETTER_S, 3500000.0, 40.0, 32.0, 2000000.0},
{LETTER_T, 4400000.0, 48.0, 40.0, 4000000.0},
{LETTER_U, 5300000.0, 56.0, 48.0, 4000000.0},
{LETTER_V, 6200000.0, 64.0, 56.0, 6000000.0},
{LETTER_W, 7000000.0, 72.0, 64.0, 6000000.0},
{LETTER_X, 7900000.0, 84.5, 72.0, 6000000.0}}
| const UPS_Constant UPS_Constant_Table[4] |
1.6.3