Interface for transforming between coordinate systems.
More...
#include <ogr_spatialref.h>
Inherited by CompositeCT, CutlineTransformer, GCPCoordTransformation, and OGRProj4CT.
Interface for transforming between coordinate systems.
Currently, the only implementation within OGR is OGRProj4CT, which requires the PROJ.4 library to be available at run-time.
Also, see OGRCreateCoordinateTransformation() for creating transformations.
◆ DestroyCT()
◆ FromHandle()
Convert a OGRCoordinateTransformationH to a OGRCoordinateTransformation*.
- Since
- GDAL 2.3
◆ GetSourceCS()
Fetch internal source coordinate system.
◆ GetTargetCS()
Fetch internal target coordinate system.
◆ ToHandle()
Convert a OGRCoordinateTransformation* to a OGRCoordinateTransformationH.
- Since
- GDAL 2.3
◆ Transform()
virtual int OGRCoordinateTransformation::Transform |
( |
int |
nCount, |
|
|
double * |
x, |
|
|
double * |
y, |
|
|
double * |
z = nullptr |
|
) |
| |
|
pure virtual |
Transform points from source to destination space.
This method is the same as the C function OCTTransform().
The method TransformEx() allows extended success information to be captured indicating which points failed to transform.
- Parameters
-
nCount | number of points to transform. |
x | array of nCount X vertices, modified in place. |
y | array of nCount Y vertices, modified in place. |
z | array of nCount Z vertices, modified in place. |
- Returns
- TRUE on success, or FALSE if some or all points fail to transform.
◆ TransformEx()
virtual int OGRCoordinateTransformation::TransformEx |
( |
int |
nCount, |
|
|
double * |
x, |
|
|
double * |
y, |
|
|
double * |
z = nullptr , |
|
|
int * |
pabSuccess = nullptr |
|
) |
| |
|
pure virtual |
Transform points from source to destination space.
This method is the same as the C function OCTTransformEx().
- Parameters
-
nCount | number of points to transform. |
x | array of nCount X vertices, modified in place. |
y | array of nCount Y vertices, modified in place. |
z | array of nCount Z vertices, modified in place. |
pabSuccess | array of per-point flags set to TRUE if that point transforms, or FALSE if it does not. |
- Returns
- TRUE if some or all points transform successfully, or FALSE if if none transform.
The documentation for this class was generated from the following files: