| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Public Attributes
TeDatum Class Reference

Implements valid Datum options and related parameters which account for different earth spheroids. More...

`#include <TeDatum.h>`

List of all members.

## Public Member Functions

| TeDatum (std::string name="Spherical", double rd=6.371000e+06, double flt=0., double dx=0., double dy=0., double dz=0.)
| Constructor.
| TeDatum (const TeDatum &other)
| Copy constructor.
TeDatum & | operator= (const TeDatum &rhs)
| Operator =.
| ~TeDatum ()
| Destructor.
std::string | name () const
| Returns the datum name.
void | name (const std::string &name)
| Sets the datum name.
double | radius () const
| Returns Earth equatorial radius (m)
void | radius (const double rd)
| Sets Earth equatorial radius (m)
double | flattening () const
| Returns the Earth equatorial radius (m) (m)
void | flattening (const double flt)
| Sets the Earth equatorial radius (m) (m)
double | xShift () const
| Returns the shift along x axis (m)
double | yShift () const
| Returns the shift along y axis (m)
double | zShift () const
| Returns the shift along z axis (m)
bool | operator== (const TeDatum &dat) const
| Verifies if current TeDatum is equal to TeDatum& dat.
string | getProj4Description ()
| Returns the Datum description in PROJ4 format.
string | getWKTDescription ()
| Returns the Datum description in WKT format.

## Public Attributes

double | dx_
| TeDatum shift along x axis (m)
double | dy_
| TeDatum shift along y axis (m)
double | dz_
| TeDatum shift along z axis (m)

## Detailed Description

Implements valid Datum options and related parameters which account for different earth spheroids.

Specifies planimetric TeDatum parameters to be used for defining geodetic coordinates, which are necessary to establish a map projection system. It encapsulates the following important information regarding a planimetric Datum such as:

- Datum name;
- Earth equatorial radius;
- Earth flatenning;
- Datum shifts.

Author:
  Ubirajara Freitas, Julio d'Alge.

See also:
  TeDatumFactory

Examples:

  convertCoordinates.cpp, copyLayer.cpp, createLayer.cpp, createSTElementSetFromLayer.cpp, importShape.cpp, and spatialQuery.cpp.

## Constructor & Destructor Documentation

TeDatum::TeDatum | ( | std::string | name = `"Spherical"`,
|  | double | rd = `6.371000e+06`,
|  | double | flt = `0.`,
|  | double | dx = `0.`,
|  | double | dy = `0.`,
|  | double | dz = `0.`
| ) |  | `[inline]`

Constructor.

TeDatum::TeDatum | ( | const TeDatum & | other | ) |

Copy constructor.

TeDatum::~TeDatum | ( |  | ) | `[inline]`

Destructor.

## Member Function Documentation

double TeDatum::flattening | ( |  | ) | const`[inline]`

Returns the Earth equatorial radius (m) (m)

void TeDatum::flattening | ( | const double | flt | ) | `[inline]`

Sets the Earth equatorial radius (m) (m)

string TeDatum::getProj4Description | ( |  | ) |

Returns the Datum description in PROJ4 format.

string TeDatum::getWKTDescription | ( |  | ) |

Returns the Datum description in WKT format.

void TeDatum::name | ( | const std::string & | name | ) | `[inline]`

Sets the datum name.

std::string TeDatum::name | ( |  | ) | const`[inline]`

Returns the datum name.

Examples:
  copyLayer.cpp, importGeoTab.cpp, importMIDMIF.cpp, and importShape.cpp.

TeDatum & TeDatum::operator= | ( | const TeDatum & | rhs | ) |

Operator =.

bool TeDatum::operator== | ( | const TeDatum & | dat | ) | const`[inline]`

Verifies if current TeDatum is equal to TeDatum& dat.

double TeDatum::radius | ( |  | ) | const`[inline]`

Returns Earth equatorial radius (m)

void TeDatum::radius | ( | const double | rd | ) | `[inline]`

Sets Earth equatorial radius (m)

double TeDatum::xShift | ( |  | ) | const`[inline]`

Returns the shift along x axis (m)

double TeDatum::yShift | ( |  | ) | const`[inline]`

Returns the shift along y axis (m)

double TeDatum::zShift | ( |  | ) | const`[inline]`

Returns the shift along z axis (m)

## Member Data Documentation

double TeDatum::dx_

TeDatum shift along x axis (m)

double TeDatum::dy_

TeDatum shift along y axis (m)

double TeDatum::dz_

TeDatum shift along z axis (m)

The documentation for this class was generated from the following files:

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeDatum.h
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeDatum.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines