Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

UTM Class Reference
[Data classes]

Universal Transverse Mercator and altitude coordinates. More...

#include <GeoPos.h>

Inheritance diagram for UTM:

BaseType List of all members.

Public Methods

 UTM ()
 Construct a default (invalid) UTM.

 UTM (double easting_, double northing_, char zone_, char designator_, double alt=0.0)
 Construct a UTM.

 UTM (LLA const &lla, ReferenceEllipsoid const &ref=GeoRef::WGS84, char zone=-1)
 Convert from LLA to UTM.

 UTM (ECEF const &ecef, ReferenceEllipsoid const &ref=GeoRef::WGS84)
 Convert from ECEF to UTM.

UTM const & operator= (LLA const &lla)
 Convert from LLA to UTM (using WGS84).

UTM const & operator= (ECEF const &ecef)
 Convert from ECEF to UTM (using WGS84).

virtual ~UTM ()
void set (double easting_, double northing_, char zone_, char designator_, double alt=0.0)
 Set the current position from UTM coordinates.

void set (double easting_, double northing_, const char *zone_, double alt=0.0)
 Set the current position from UTM coordinates.

double easting () const
 Get the easting coordinate.

double northing () const
 Get the northing coordinate.

char zone () const
 Get the zone.

char designator () const
 Get the latitude designator letter.

double altitude () const
 Get altitude in meters.

virtual std::string asString () const
 String representation.

virtual std::string typeString () const
 Return a string representation of the type.

void parseXML (const char *)
 Set the current position from XML character data.

bool valid () const
 Check that the UTM coordinates are valid.

virtual void serialize (Archive &)
 Serialize to or from a data archive.

virtual void convertXML ()
 Convert XML data to internal format prior to serialization.


Static Public Methods

char getDesignator (double latitude)
 Get the designator character for a given latitude.


Detailed Description

Universal Transverse Mercator and altitude coordinates.

A geospatial coordinate class using Universal Transverse Mercator (UTM) coordinates plus altitude.

A sample XML tag for this type is <UTM>704300 3390210 13T 100.0</UTM> which represents 704300E 3390210N 13T, 100.0 m above the reference ellipsoid.


Constructor & Destructor Documentation

UTM::UTM   [inline]
 

Construct a default (invalid) UTM.

UTM::UTM double    easting_,
double    northing_,
char    zone_,
char    designator_,
double    alt = 0.0
[inline]
 

Construct a UTM.

UTM::UTM LLA const &    lla,
ReferenceEllipsoid const &    ref = GeoRef::WGS84,
char    zone = -1
 

Convert from LLA to UTM.

UTM::UTM ECEF const &    ecef,
ReferenceEllipsoid const &    ref = GeoRef::WGS84
 

Convert from ECEF to UTM.

virtual UTM::~UTM   [inline, virtual]
 


Member Function Documentation

double UTM::altitude   const [inline]
 

Get altitude in meters.

std::string UTM::asString   [virtual]
 

String representation.

Implements BaseType.

void BaseType::convertXML   [virtual, inherited]
 

Convert XML data to internal format prior to serialization.

This method is currently only called by the XML parser for Object classes. If another BaseType class requires this method, a call must be added to the appropriate XML handler in the parser.

char UTM::designator   const [inline]
 

Get the latitude designator letter.

double UTM::easting   const [inline]
 

Get the easting coordinate.

char UTM::getDesignator double    latitude [static]
 

Get the designator character for a given latitude.

Parameters:
latitude  latitude in radians

double UTM::northing   const [inline]
 

Get the northing coordinate.

UTM const & UTM::operator= ECEF const &    ecef
 

Convert from ECEF to UTM (using WGS84).

UTM const & UTM::operator= LLA const &    lla
 

Convert from LLA to UTM (using WGS84).

void UTM::parseXML const char *    [virtual]
 

Set the current position from XML character data.

UTM coordinate format (easting, northing, zone, alt): @n x.x x.x zone x.x @n where zone is an integer followed by a UTM latitude designator, such as 10T

Reimplemented from BaseType.

void UTM::serialize Archive   [virtual]
 

Serialize to or from a data archive.

Reimplemented from BaseType.

void UTM::set double    easting_,
double    northing_,
const char *    zone_,
double    alt = 0.0
 

Set the current position from UTM coordinates.

Parameters:
easting_  UTM easting
northing_  UTM northing
zone_  UTM zone (e.g. "10T")
alt  altitude above the reference ellipse (in meters)

void UTM::set double    easting_,
double    northing_,
char    zone_,
char    designator_,
double    alt = 0.0
[inline]
 

Set the current position from UTM coordinates.

Parameters:
easting_  UTM easting
northing_  UTM northing
zone_  UTM zone
designator_  UTM zone letter
alt  altitude above the reference ellipse (in meters)

virtual std::string UTM::typeString   const [inline, virtual]
 

Return a string representation of the type.

Implements BaseType.

bool UTM::valid  
 

Check that the UTM coordinates are valid.

char UTM::zone   const [inline]
 

Get the zone.


The documentation for this class was generated from the following files:
SimData version pre-0.4.0. For more information on SimData, visit the SimData Homepage.

Generated on Tue Oct 14 12:06:42 2003, using Doxygen 1.2.18.

[SF.net]