#include <math.h>
#include "polarst.h"
#include "ups.h"
Go to the source code of this file.
|
int | Set_UPS_Parameters (double a, double f) |
|
void | Get_UPS_Parameters (double *a, double *f) |
|
int | Convert_Geodetic_To_UPS (double Latitude, double longitude, char *Hemisphere, double *Easting, double *Northing) |
|
int | Convert_UPS_To_Geodetic (char Hemisphere, double Easting, double Northing, double *Latitude, double *longitude) |
|
#define MAX_EAST_NORTH 4000000 |
#define MAX_LAT ((PI * 90)/180.0) /* 90 degrees in radians */ |
#define MAX_ORIGIN_LAT ((81.114528 * PI) / 180.0) |
#define MIN_NORTH_LAT (83.5*PI/180.0) |
#define MIN_SOUTH_LAT (-79.5*PI/180.0) |
#define PI 3.14159265358979323e0 /* PI */ |
#define PI_OVER (PI/2.0e0) /* PI over 2 */ |
int Convert_Geodetic_To_UPS |
( |
double |
Latitude, |
|
|
double |
longitude, |
|
|
char * |
Hemisphere, |
|
|
double * |
Easting, |
|
|
double * |
Northing |
|
) |
| |
int Convert_UPS_To_Geodetic |
( |
char |
Hemisphere, |
|
|
double |
Easting, |
|
|
double |
Northing, |
|
|
double * |
Latitude, |
|
|
double * |
longitude |
|
) |
| |
void Get_UPS_Parameters |
( |
double * |
a, |
|
|
double * |
f |
|
) |
| |
int Set_UPS_Parameters |
( |
double |
a, |
|
|
double |
f |
|
) |
| |
double UPS_f = 1 / 298.257223563 |
|
static |
const double UPS_False_Easting = 2000000 |
const double UPS_False_Northing = 2000000 |
double UPS_Origin_longitude = 0.0 |
|
static |