#include <ogr_spatialref.h>
Public Member Functions | |
virtual OGRSpatialReference * | GetSourceCS ()=0 |
virtual OGRSpatialReference * | GetTargetCS ()=0 |
virtual int | Transform (int nCount, double *x, double *y, double *z=NULL)=0 |
virtual int | TransformEx (int nCount, double *x, double *y, double *z=NULL, int *pabSuccess=NULL)=0 |
Object for transforming between coordinate systems.
Also, see OGRCreateSpatialReference() for creating transformations.
virtual OGRSpatialReference* OGRCoordinateTransformation::GetSourceCS | ( | ) | [pure virtual] |
Fetch internal source coordinate system.
Implemented in OGRProj4CT.
virtual OGRSpatialReference* OGRCoordinateTransformation::GetTargetCS | ( | ) | [pure virtual] |
Fetch internal target coordinate system.
Implemented in OGRProj4CT.
Referenced by OGRPolygon::transform(), OGRPoint::transform(), OGRLineString::transform(), and OGRGeometryCollection::transform().
virtual int OGRCoordinateTransformation::Transform | ( | int | nCount, | |
double * | x, | |||
double * | y, | |||
double * | z = NULL | |||
) | [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.
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. |
Implemented in OGRProj4CT.
Referenced by OGRPoint::transform(), and OGRLineString::transform().
virtual int OGRCoordinateTransformation::TransformEx | ( | int | nCount, | |
double * | x, | |||
double * | y, | |||
double * | z = NULL , |
|||
int * | pabSuccess = NULL | |||
) | [pure virtual] |
Transform points from source to destination space.
This method is the same as the C function OCTTransformEx().
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. |
Implemented in OGRProj4CT.