Functions | Variables
UTM 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 UTM::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 gps_conversions.h.

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

Definition at line 210 of file gps_conversions.h.

static void UTM::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 gps_conversions.h.

static char UTM::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 gps_conversions.h.

static void UTM::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 gps_conversions.h.

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

Definition at line 285 of file gps_conversions.h.


Variable Documentation

const double UTM::DEGREES_PER_RADIAN = 180.0/M_PI

Definition at line 31 of file gps_conversions.h.

const double UTM::RADIANS_PER_DEGREE = M_PI/180.0

Definition at line 30 of file gps_conversions.h.

const double UTM::UTM_E2 = (WGS84_E*WGS84_E)

Definition at line 45 of file gps_conversions.h.

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

Definition at line 46 of file gps_conversions.h.

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

Definition at line 47 of file gps_conversions.h.

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

Definition at line 48 of file gps_conversions.h.

const double UTM::UTM_FE = 500000.0

Definition at line 42 of file gps_conversions.h.

const double UTM::UTM_FN_N = 0.0

Definition at line 43 of file gps_conversions.h.

const double UTM::UTM_FN_S = 10000000.0

Definition at line 44 of file gps_conversions.h.

const double UTM::UTM_K0 = 0.9996

Definition at line 41 of file gps_conversions.h.

const double UTM::WGS84_A = 6378137.0

Definition at line 34 of file gps_conversions.h.

const double UTM::WGS84_B = 6356752.31424518

Definition at line 35 of file gps_conversions.h.

const double UTM::WGS84_E = 0.0818191908

Definition at line 37 of file gps_conversions.h.

const double UTM::WGS84_EP = 0.0820944379

Definition at line 38 of file gps_conversions.h.

const double UTM::WGS84_F = 0.0033528107

Definition at line 36 of file gps_conversions.h.



mavros
Author(s): Vladimir Ermakov
autogenerated on Thu Feb 9 2017 04:00:18