#include <math.h>
#include "tranmerc.h"
Go to the source code of this file.
|
int | Set_Transverse_Mercator_Parameters (double a, double f, double Origin_Latitude, double Central_Meridian, double False_Easting, double False_Northing, double Scale_Factor) |
|
void | Get_Transverse_Mercator_Parameters (double *a, double *f, double *Origin_Latitude, double *Central_Meridian, double *False_Easting, double *False_Northing, double *Scale_Factor) |
|
int | Convert_Geodetic_To_Transverse_Mercator (double Latitude, double longitude, double *Easting, double *Northing) |
|
int | Convert_Transverse_Mercator_To_Geodetic (double Easting, double Northing, double *Latitude, double *longitude) |
|
#define DENOM |
( |
|
Latitude | ) |
((double) (sqrt(1.e0 - TranMerc_es * pow(sin(Latitude),2)))) |
#define MAX_DELTA_int ((PI * 90)/180.0) /* 90 degrees in radians */ |
#define MAX_LAT ((PI * 89.99)/180.0) /* 89.99 degrees in radians */ |
#define MAX_SCALE_FACTOR 3.0 |
#define MIN_SCALE_FACTOR 0.3 |
#define PI 3.14159265358979323e0 /* PI */ |
#define PI_OVER_2 (PI/2.0e0) /* PI over 2 */ |
#define SPHSN |
( |
|
Latitude | ) |
|
Value:
pow(sin(Latitude), 2))))
static double TranMerc_es
Definition at line 113 of file tranmerc.c.
#define SPHSR |
( |
|
Latitude | ) |
|
Value:
pow(
DENOM(Latitude), 3)))
static double TranMerc_es
Definition at line 116 of file tranmerc.c.
#define SPHTMD |
( |
|
Latitude | ) |
|
Value:
static double TranMerc_cp
static double TranMerc_ep
static double TranMerc_ap
static double TranMerc_bp
static double TranMerc_dp
Definition at line 109 of file tranmerc.c.
int Convert_Geodetic_To_Transverse_Mercator |
( |
double |
Latitude, |
|
|
double |
longitude, |
|
|
double * |
Easting, |
|
|
double * |
Northing |
|
) |
| |
int Convert_Transverse_Mercator_To_Geodetic |
( |
double |
Easting, |
|
|
double |
Northing, |
|
|
double * |
Latitude, |
|
|
double * |
longitude |
|
) |
| |
void Get_Transverse_Mercator_Parameters |
( |
double * |
a, |
|
|
double * |
f, |
|
|
double * |
Origin_Latitude, |
|
|
double * |
Central_Meridian, |
|
|
double * |
False_Easting, |
|
|
double * |
False_Northing, |
|
|
double * |
Scale_Factor |
|
) |
| |
int Set_Transverse_Mercator_Parameters |
( |
double |
a, |
|
|
double |
f, |
|
|
double |
Origin_Latitude, |
|
|
double |
Central_Meridian, |
|
|
double |
False_Easting, |
|
|
double |
False_Northing, |
|
|
double |
Scale_Factor |
|
) |
| |
double TranMerc_a = 6378137.0 |
|
static |
double TranMerc_ap = 6367449.1458008 |
|
static |
double TranMerc_bp = 16038.508696861 |
|
static |
double TranMerc_cp = 16.832613334334 |
|
static |
double TranMerc_Delta_Easting = 40000000.0 |
|
static |
double TranMerc_Delta_Northing = 40000000.0 |
|
static |
double TranMerc_dp = 0.021984404273757 |
|
static |
double TranMerc_ebs = 0.0067394967565869 |
|
static |
double TranMerc_ep = 3.1148371319283e-005 |
|
static |
double TranMerc_es = 0.0066943799901413800 |
|
static |
double TranMerc_f = 1 / 298.257223563 |
|
static |
double TranMerc_False_Easting = 0.0 |
|
static |
double TranMerc_False_Northing = 0.0 |
|
static |
double TranMerc_Origin_int = 0.0 |
|
static |
double TranMerc_Origin_Lat = 0.0 |
|
static |
double TranMerc_Scale_Factor = 1.0 |
|
static |