OTB
9.0.0
Orfeo Toolbox
|
#include <otbCoordinateTransformation.h>
Public Types | |
typedef std::unique_ptr< OGRCoordinateTransformation, internal::OGRCoordinateTransformationDeleter > | CoordinateTransformationPtr |
Public Member Functions | |
CoordinateTransformation (const CoordinateTransformation &other) | |
CoordinateTransformation (const SpatialReference &source, const SpatialReference &destination) | |
SpatialReference | GetSourceSpatialReference () const |
SpatialReference | GetTargetSpatialReference () const |
CoordinateTransformation & | operator= (const CoordinateTransformation &other) noexcept |
std::tuple< double, double > | Transform (const std::tuple< double, double > &in) const |
std::tuple< double, double, double > | Transform (const std::tuple< double, double, double > &in) const |
Private Attributes | |
CoordinateTransformationPtr | m_Transform |
Friends | |
OTBGdalAdapters_EXPORT friend bool | operator!= (const CoordinateTransformation &ct1, const CoordinateTransformation &ct2) noexcept |
OTBGdalAdapters_EXPORT friend bool | operator== (const CoordinateTransformation &ct1, const CoordinateTransformation &ct2) noexcept |
This class is a wrapper around OGRCoordinateTransformation.
This class is a wrapper around OGRCoordinateTransformation. It aims at manipulating coordinate transformations between spatial reference systems within OTB, in a safe and easy way. The class constructors enforce RAII: either they fail or they provide a definitive, valid object.
Definition at line 77 of file otbCoordinateTransformation.h.
typedef std::unique_ptr<OGRCoordinateTransformation, internal::OGRCoordinateTransformationDeleter> otb::CoordinateTransformation::CoordinateTransformationPtr |
Definition at line 83 of file otbCoordinateTransformation.h.
otb::CoordinateTransformation::CoordinateTransformation | ( | const SpatialReference & | source, |
const SpatialReference & | destination | ||
) |
Builds a coordinate transformation out of source and target spatial reference systems.
source | The source spatial reference |
target | The target spatial reference |
InvalidCoordinateTransformationException | in case of failure |
otb::CoordinateTransformation::CoordinateTransformation | ( | const CoordinateTransformation & | other | ) |
Copy constructor.
SpatialReference otb::CoordinateTransformation::GetSourceSpatialReference | ( | ) | const |
SpatialReference otb::CoordinateTransformation::GetTargetSpatialReference | ( | ) | const |
|
noexcept |
Assignment operator.
std::tuple<double, double> otb::CoordinateTransformation::Transform | ( | const std::tuple< double, double > & | in | ) | const |
Transform a 2D point from source to target spatial reference
input | coords as a 2 double tuple |
TransformFailureException | if transform failed |
std::tuple<double, double, double> otb::CoordinateTransformation::Transform | ( | const std::tuple< double, double, double > & | in | ) | const |
Transform a 3D point from source to target spatial reference
input | coords as a 3 double tuple |
TransformFailureException | if transform failed |
|
friend |
different operator
|
friend |
equal operator
|
private |
Definition at line 125 of file otbCoordinateTransformation.h.