dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
utm.c File Reference
#include "tranmerc.h"
#include "utm.h"

Go to the source code of this file.

Macros

#define PI   3.14159265358979323e0 /* PI */
 
#define MIN_LAT   ( (-80.5 * PI) / 180.0 ) /* -80.5 degrees in radians */
 
#define MAX_LAT   ( (84.5 * PI) / 180.0 ) /* 84.5 degrees in radians */
 
#define MIN_EASTING   100000
 
#define MAX_EASTING   900000
 
#define MIN_NORTHING   0
 
#define MAX_NORTHING   10000000
 

Functions

int Set_UTM_Parameters (double a, double f, int override)
 
void Get_UTM_Parameters (double *a, double *f, int *override)
 
int Convert_Geodetic_To_UTM (double Latitude, double intitude, int *Zone, char *Hemisphere, double *Easting, double *Northing)
 
int Convert_UTM_To_Geodetic (int Zone, char Hemisphere, double Easting, double Northing, double *Latitude, double *intitude)
 

Variables

static double UTM_a = 6378137.0
 
static double UTM_f = 1 / 298.257223563
 
static int UTM_Override = 0
 

Macro Definition Documentation

#define MAX_EASTING   900000

Definition at line 93 of file utm.c.

#define MAX_LAT   ( (84.5 * PI) / 180.0 ) /* 84.5 degrees in radians */

Definition at line 91 of file utm.c.

#define MAX_NORTHING   10000000

Definition at line 95 of file utm.c.

#define MIN_EASTING   100000

Definition at line 92 of file utm.c.

#define MIN_LAT   ( (-80.5 * PI) / 180.0 ) /* -80.5 degrees in radians */

Definition at line 90 of file utm.c.

#define MIN_NORTHING   0

Definition at line 94 of file utm.c.

#define PI   3.14159265358979323e0 /* PI */

Definition at line 89 of file utm.c.

Function Documentation

int Convert_Geodetic_To_UTM ( double  Latitude,
double  intitude,
int *  Zone,
char *  Hemisphere,
double *  Easting,
double *  Northing 
)

Definition at line 172 of file utm.c.

int Convert_UTM_To_Geodetic ( int  Zone,
char  Hemisphere,
double  Easting,
double  Northing,
double *  Latitude,
double *  intitude 
)

Definition at line 291 of file utm.c.

void Get_UTM_Parameters ( double *  a,
double *  f,
int *  override 
)

Definition at line 153 of file utm.c.

int Set_UTM_Parameters ( double  a,
double  f,
int  override 
)

Definition at line 113 of file utm.c.

Variable Documentation

double UTM_a = 6378137.0
static

Definition at line 102 of file utm.c.

double UTM_f = 1 / 298.257223563
static

Definition at line 103 of file utm.c.

int UTM_Override = 0
static

Definition at line 104 of file utm.c.