Jpp 19.3.0
the software that should make you happy
Loading...
Searching...
No Matches
JUTM Namespace Reference

Auxiliaries for handling universal transverse mercator coordinate system (UTM). More...

Classes

class  JUTMGrid
 Data structure for UTM grid. More...
 
class  JUTMPosition
 Data structure for UTM position. More...
 

Functions

int getUTMZone (const double longitude)
 Get UTM zone for given longitude.
 
static double getUTMLongitude (const int zone)
 Get longitude of the central meridian for given UTM zone.
 

Variables

static const double UTM_ZONE_WIDTH_RAD = 6.0 * PI / 180.0
 UTM zone width [rad].
 
static const JUTMPosition JNorth_t (0,+1, 0)
 North.
 
static const JUTMPosition JEast_t (+1, 0, 0)
 East.
 
static const JUTMPosition JSouth_t (0,-1, 0)
 South.
 
static const JUTMPosition JWest_t (-1, 0, 0)
 West.
 

Detailed Description

Auxiliaries for handling universal transverse mercator coordinate system (UTM).

Author
mdejong

Function Documentation

◆ getUTMZone()

int JUTM::getUTMZone ( const double longitude)
inline

Get UTM zone for given longitude.

Parameters
longitudelongitude [rad]
Returns
UTM zone

Definition at line 47 of file JUTMGrid.hh.

48 {
49 return 1 + int((PI + longitude) / UTM_ZONE_WIDTH_RAD);
50 }

◆ getUTMLongitude()

static double JUTM::getUTMLongitude ( const int zone)
inlinestatic

Get longitude of the central meridian for given UTM zone.

Parameters
zoneUTM zone
Returns
longitude of central meridian [rad]

Definition at line 59 of file JUTMGrid.hh.

60 {
61 return -PI + (zone - 1) * UTM_ZONE_WIDTH_RAD + 0.5*UTM_ZONE_WIDTH_RAD;
62 }

Variable Documentation

◆ UTM_ZONE_WIDTH_RAD

const double JUTM::UTM_ZONE_WIDTH_RAD = 6.0 * PI / 180.0
static

UTM zone width [rad].

The UTM system consists of 60 zones, each 6-degrees of longitude in width.
The zones are numbered 1-60, beginning at 180-degrees longitude and increasing to the East.

Definition at line 38 of file JUTMGrid.hh.

◆ JNorth_t

const JUTMPosition JUTM::JNorth_t(0,+1, 0) ( 0 ,
+ 1,
0  )
static

North.

◆ JEast_t

const JUTMPosition JUTM::JEast_t(+1, 0, 0) ( + 1,
0 ,
0  )
static

East.

◆ JSouth_t

const JUTMPosition JUTM::JSouth_t(0,-1, 0) ( 0 ,
- 1,
0  )
static

South.

◆ JWest_t

const JUTMPosition JUTM::JWest_t(-1, 0, 0) ( - 1,
0 ,
0  )
static

West.