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

LLA Class Reference
[Data classes]

Latitude, longitude, and altitude coordinates. More...

#include <GeoPos.h>

Inheritance diagram for LLA:

BaseType List of all members.

Public Methods

 LLA ()
 Construct a default LLA.

 LLA (double lat, double lon, double alt=0.0)
 Construct a new LLA.

 LLA (UTM const &, ReferenceEllipsoid const &=GeoRef::WGS84)
 Copy constructor to convert from UTM.

 LLA (ECEF const &, ReferenceEllipsoid const &=GeoRef::WGS84)
 Copy constructor to convert from ECEF.

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

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

virtual ~LLA ()
void set (double lat, double lon, double alt=0.0)
 Set latitude, longitude, and altitude in radians.

void setDegrees (double lat, double lon, double alt=0.0)
 Set latitude, longitude, and altitude in degrees.

double latitude () const
 Get latitude in radians.

double longitude () const
 Get longitude in radians.

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.

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

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


Detailed Description

Latitude, longitude, and altitude coordinates.

A geospatial coordinate class representing latitude, longitude, and altitude.

There are two distinct XML formats for this type. The first lists latitude and longitude in degrees, followed by altitude in meters. The second uses a degree-minute-second notation for the latitude and longitude. The notation for the second format is slighly non-standard to avoid using the degree symbol. Examples:

<LLA>37.1 -122.43 100.0</LLA> 
and
<LLA>37'6"0.0 -122'25"48.0 100.0</LLA> 


Constructor & Destructor Documentation

LLA::LLA   [inline]
 

Construct a default LLA.

LLA::LLA double    lat,
double    lon,
double    alt = 0.0
[inline]
 

Construct a new LLA.

Parameters:
lat  latitude in radians.
lon  longitude in radians.
alt  altitude in meters relative to the reference ellipsoid.

LLA::LLA UTM const &   ,
ReferenceEllipsoid const &    = GeoRef::WGS84
 

Copy constructor to convert from UTM.

LLA::LLA ECEF const &   ,
ReferenceEllipsoid const &    = GeoRef::WGS84
 

Copy constructor to convert from ECEF.

virtual LLA::~LLA   [inline, virtual]
 


Member Function Documentation

double LLA::altitude   const [inline]
 

Get altitude in meters.

std::string LLA::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.

double LLA::latitude   const [inline]
 

Get latitude in radians.

double LLA::longitude   const [inline]
 

Get longitude in radians.

LLA const & LLA::operator= ECEF const &   
 

Convert from ECEF to LLA (using WGS84).

LLA const & LLA::operator= UTM const &   
 

Convert from UTM to LLA (using WGS84).

void LLA::parseXML const char *    [virtual]
 

Set the current position from XML character data.

LLA coordinate format (lat, lon, alt): @n x.x x.x x.x

LLA coordinate format 2 (lat, lon, alt): @n x'x"x.x x'x"x.x x.x

Reimplemented from BaseType.

void LLA::serialize Archive   [virtual]
 

Serialize to or from a data archive.

Reimplemented from BaseType.

void LLA::set double    lat,
double    lon,
double    alt = 0.0
[inline]
 

Set latitude, longitude, and altitude in radians.

void LLA::setDegrees double    lat,
double    lon,
double    alt = 0.0
 

Set latitude, longitude, and altitude in degrees.

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

Return a string representation of the type.

Implements BaseType.


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:41 2003, using Doxygen 1.2.18.

[SF.net]