Class that encapsulates various coordinate transformations.
More...
#include <ad/map/point/CoordinateTransform.hpp>
Class that encapsulates various coordinate transformations.
◆ CoordinateTransform()
ad::map::point::CoordinateTransform::CoordinateTransform |
( |
| ) |
|
Constructor. Initialize working variables.
◆ ~CoordinateTransform()
ad::map::point::CoordinateTransform::~CoordinateTransform |
( |
| ) |
|
Destructor. Does nothing.
◆ convert() [1/7]
void ad::map::point::CoordinateTransform::convert |
( |
const ECEFPoint & |
x, |
|
|
ENUPoint & |
y |
|
) |
| const |
|
inline |
Convert point between coordinate systems.
- Template Parameters
-
SourceC | Source coordinate system. |
TargetC | Target coordinate system. |
- Parameters
-
[in] | x | Source point. |
[out] | y | Target point. |
◆ convert() [2/7]
void ad::map::point::CoordinateTransform::convert |
( |
const ECEFPoint & |
x, |
|
|
GeoPoint & |
y |
|
) |
| const |
|
inline |
Convert point between coordinate systems.
- Template Parameters
-
SourceC | Source coordinate system. |
TargetC | Target coordinate system. |
- Parameters
-
[in] | x | Source point. |
[out] | y | Target point. |
◆ convert() [3/7]
void ad::map::point::CoordinateTransform::convert |
( |
const ENUPoint & |
x, |
|
|
ECEFPoint & |
y |
|
) |
| const |
|
inline |
Convert point between coordinate systems.
- Template Parameters
-
SourceC | Source coordinate system. |
TargetC | Target coordinate system. |
- Parameters
-
[in] | x | Source point. |
[out] | y | Target point. |
◆ convert() [4/7]
void ad::map::point::CoordinateTransform::convert |
( |
const ENUPoint & |
x, |
|
|
GeoPoint & |
y |
|
) |
| const |
|
inline |
Convert point between coordinate systems.
- Template Parameters
-
SourceC | Source coordinate system. |
TargetC | Target coordinate system. |
- Parameters
-
[in] | x | Source point. |
[out] | y | Target point. |
◆ convert() [5/7]
void ad::map::point::CoordinateTransform::convert |
( |
const GeoPoint & |
x, |
|
|
ECEFPoint & |
y |
|
) |
| const |
|
inline |
Convert point between coordinate systems.
- Template Parameters
-
SourceC | Source coordinate system. |
TargetC | Target coordinate system. |
- Parameters
-
[in] | x | Source point. |
[out] | y | Target point. |
◆ convert() [6/7]
void ad::map::point::CoordinateTransform::convert |
( |
const GeoPoint & |
x, |
|
|
ENUPoint & |
y |
|
) |
| const |
|
inline |
Convert point between coordinate systems.
- Template Parameters
-
SourceC | Source coordinate system. |
TargetC | Target coordinate system. |
- Parameters
-
[in] | x | Source point. |
[out] | y | Target point. |
◆ convert() [7/7]
template<typename SourceC , typename TargetC >
void ad::map::point::CoordinateTransform::convert |
( |
const std::vector< SourceC > & |
xs, |
|
|
std::vector< TargetC > & |
ys |
|
) |
| const |
|
inline |
Convert points between coordinate systems.
- Template Parameters
-
SourceC | Source coordinate system. |
TargetC | Target coordinate system. |
- Parameters
-
[in] | xs | Source points. |
[out] | ys | Target points. |
◆ ECEF2ENU()
◆ ECEF2Geo()
Convert point between coordinate systems.
- Parameters
-
- Returns
- Point in the target coordinate system.
- Note
- Olson, D. K. (1996): Converting earth-Centered, Earth-Fixed Coordinates to Geodetic Coordinates, IEEE Transactions on Aerospace and Electronic Systems, Vol. 32, No. 1, January 1996, pp. 473-476.
◆ ENU2ECEF()
◆ ENU2Geo()
GeoPoint ad::map::point::CoordinateTransform::ENU2Geo |
( |
const ENUPoint & |
pt | ) |
const |
◆ Geo2ECEF()
Convert point between coordinate systems.
- Parameters
-
- Returns
- Point in the target coordinate system.
- Note
- Olson, D. K. (1996): Converting earth-Centered, Earth-Fixed Coordinates to Geodetic Coordinates, IEEE Transactions on Aerospace and Electronic Systems, Vol. 32, No. 1, January 1996, pp. 473-476.
◆ Geo2ENU()
ENUPoint ad::map::point::CoordinateTransform::Geo2ENU |
( |
const GeoPoint & |
pt | ) |
const |
◆ geocentricLatitude()
static double ad::map::point::CoordinateTransform::geocentricLatitude |
( |
const Latitude & |
lat | ) |
|
|
static |
◆ getENURef()
size_t ad::map::point::CoordinateTransform::getENURef |
( |
| ) |
const |
- Returns
- ENU Reference Point counter. To be used to mark what ENU system is used.
◆ getENUReferencePoint()
const GeoPoint& ad::map::point::CoordinateTransform::getENUReferencePoint |
( |
| ) |
const |
- Returns
- ENU Reference Point.
◆ isENUValid()
bool ad::map::point::CoordinateTransform::isENUValid |
( |
| ) |
const |
- Returns
- true if ENU conversion is possible.
◆ setENUReferencePoint()
void ad::map::point::CoordinateTransform::setENUReferencePoint |
( |
const GeoPoint & |
enu_ref_point | ) |
|
Set the reference point for the ENU coordinate system. Increases ENU reference point counter.
- Parameters
-
[in] | enu_ref_point | ENU reference point. |
◆ setGeoProjection()
bool ad::map::point::CoordinateTransform::setGeoProjection |
( |
std::string const & |
geo_projection | ) |
|
Set the method for ENU coordinate system conversion via projection string (e.g. from OpenDrive file). Increases ENU reference point counter. Be aware: when configured via the projection string, calls to setENUReferencePoint() will have no effect.
- Parameters
-
[in] | geo_projection | projection string for Geo<->ENU conversion |
◆ WGS84_R()
static physics::Distance ad::map::point::CoordinateTransform::WGS84_R |
( |
const Latitude & |
lat | ) |
|
|
static |
The documentation for this class was generated from the following file: