Functions | Variables
gps_common Namespace Reference

Functions

static void LLtoUTM (const double Lat, const double Long, double &UTMNorthing, double &UTMEasting, char *UTMZone)
static void LLtoUTM (const double Lat, const double Long, double &UTMNorthing, double &UTMEasting, std::string &UTMZone)
static void UTM (double lat, double lon, double *x, double *y)
static char UTMLetterDesignator (double Lat)
static void UTMtoLL (const double UTMNorthing, const double UTMEasting, const char *UTMZone, double &Lat, double &Long)
static void UTMtoLL (const double UTMNorthing, const double UTMEasting, std::string UTMZone, double &Lat, double &Long)

Variables

const double DEGREES_PER_RADIAN = 180.0/M_PI
const double RADIANS_PER_DEGREE = M_PI/180.0
const double UTM_E2 = (WGS84_E*WGS84_E)
const double UTM_E4 = (UTM_E2*UTM_E2)
const double UTM_E6 = (UTM_E4*UTM_E2)
const double UTM_EP2 = (UTM_E2/(1-UTM_E2))
const double UTM_FE = 500000.0
const double UTM_FN_N = 0.0
const double UTM_FN_S = 10000000.0
const double UTM_K0 = 0.9996
const double WGS84_A = 6378137.0
const double WGS84_B = 6356752.31424518
const double WGS84_E = 0.0818191908
const double WGS84_EP = 0.0820944379
const double WGS84_F = 0.0033528107

Function Documentation

static void gps_common::LLtoUTM ( const double  Lat,
const double  Long,
double &  UTMNorthing,
double &  UTMEasting,
char *  UTMZone 
) [inline, static]

Convert lat/long to UTM coords. Equations from USGS Bulletin 1532

East Longitudes are positive, West longitudes are negative. North latitudes are positive, South latitudes are negative Lat and Long are in fractional degrees

Written by Chuck Gantz- chuck.gantz@globalstar.com

Definition at line 148 of file conversions.h.

static void gps_common::LLtoUTM ( const double  Lat,
const double  Long,
double &  UTMNorthing,
double &  UTMEasting,
std::string &  UTMZone 
) [inline, static]

Definition at line 210 of file conversions.h.

static void gps_common::UTM ( double  lat,
double  lon,
double *  x,
double *  y 
) [inline, static]

Utility function to convert geodetic to UTM position

Units in are floating point degrees (sign for east/west)

Units out are meters

Definition at line 57 of file conversions.h.

static char gps_common::UTMLetterDesignator ( double  Lat) [inline, static]

Determine the correct UTM letter designator for the given latitude

Returns:
'Z' if latitude is outside the UTM limits of 84N to 80S

Written by Chuck Gantz- chuck.gantz@globalstar.com

Definition at line 110 of file conversions.h.

static void gps_common::UTMtoLL ( const double  UTMNorthing,
const double  UTMEasting,
const char *  UTMZone,
double &  Lat,
double &  Long 
) [inline, static]

Converts UTM coords to lat/long. Equations from USGS Bulletin 1532

East Longitudes are positive, West longitudes are negative. North latitudes are positive, South latitudes are negative Lat and Long are in fractional degrees.

Written by Chuck Gantz- chuck.gantz@globalstar.com

Definition at line 230 of file conversions.h.

static void gps_common::UTMtoLL ( const double  UTMNorthing,
const double  UTMEasting,
std::string  UTMZone,
double &  Lat,
double &  Long 
) [inline, static]

Definition at line 286 of file conversions.h.


Variable Documentation

const double gps_common::DEGREES_PER_RADIAN = 180.0/M_PI

Definition at line 31 of file conversions.h.

const double gps_common::RADIANS_PER_DEGREE = M_PI/180.0

Definition at line 30 of file conversions.h.

Definition at line 45 of file conversions.h.

const double gps_common::UTM_E4 = (UTM_E2*UTM_E2)

Definition at line 46 of file conversions.h.

const double gps_common::UTM_E6 = (UTM_E4*UTM_E2)

Definition at line 47 of file conversions.h.

const double gps_common::UTM_EP2 = (UTM_E2/(1-UTM_E2))

Definition at line 48 of file conversions.h.

const double gps_common::UTM_FE = 500000.0

Definition at line 42 of file conversions.h.

const double gps_common::UTM_FN_N = 0.0

Definition at line 43 of file conversions.h.

const double gps_common::UTM_FN_S = 10000000.0

Definition at line 44 of file conversions.h.

const double gps_common::UTM_K0 = 0.9996

Definition at line 41 of file conversions.h.

const double gps_common::WGS84_A = 6378137.0

Definition at line 34 of file conversions.h.

const double gps_common::WGS84_B = 6356752.31424518

Definition at line 35 of file conversions.h.

const double gps_common::WGS84_E = 0.0818191908

Definition at line 37 of file conversions.h.

const double gps_common::WGS84_EP = 0.0820944379

Definition at line 38 of file conversions.h.

const double gps_common::WGS84_F = 0.0033528107

Definition at line 36 of file conversions.h.



gps_common
Author(s):
autogenerated on Mon Oct 6 2014 00:16:08