LuciadCPillar 2024.0.08
|
Provides transformations between a source and a target coordinate reference. More...
#include <luciad/geodesy/Transformation.h>
Public Member Functions | |
virtual | ~Transformation ()=default |
virtual const std::shared_ptr< CoordinateReference > & | getSourceReference () const =0 |
Returns the source coordinate reference. More... | |
virtual const std::shared_ptr< CoordinateReference > & | getTargetReference () const =0 |
Returns the target coordinate reference. More... | |
virtual bool | isIdentity () const =0 |
Returns whether this transformation is an identity transformation, i.e. More... | |
virtual std::optional< Bounds > | transform (const Bounds &bounds) const =0 |
Transforms the bounds from the source reference to the target reference. More... | |
virtual std::optional< Coordinate > | transform (const Coordinate &point) const =0 |
Transforms a point from the source reference to the target reference. More... | |
virtual std::optional< Point > | transform (const Point &point) const =0 |
Transforms a point from the source reference to the target reference. More... | |
Static Public Member Functions | |
static std::shared_ptr< Transformation > | create (std::shared_ptr< CoordinateReference > source, std::shared_ptr< CoordinateReference > target) |
Creates a transformation for the given references. More... | |
Provides transformations between a source and a target coordinate reference.
|
virtualdefault |
|
static |
Creates a transformation for the given references.
source | Source coordinate reference. |
target | Target coordinate reference. |
luciad::InvalidArgumentException | when no transformation can be set up. |
|
pure virtual |
Returns the source coordinate reference.
|
pure virtual |
Returns the target coordinate reference.
|
pure virtual |
Returns whether this transformation is an identity transformation, i.e.
if the output to the transform methods is exactly the same as the input.
|
pure virtual |
Transforms the bounds from the source reference to the target reference.
bounds | Bounds. |
std::nullopt
if the bounds does not exist in the target reference, std::nullopt
if the bounds is not defined in the source reference.
|
pure virtual |
Transforms a point from the source reference to the target reference.
point | Point. |
std::nullopt
if the point does not exist in the target reference.
|
pure virtual |
Transforms a point from the source reference to the target reference.
point | Point. |
std::nullopt
if the point does not exist in the target reference, std::nullopt
if the point is not defined in the source reference