OGR
|
#include <ogr_spatialref.h>
Public Member Functions | |
virtual OGRSpatialReference * | GetSourceCS ()=0 |
virtual OGRSpatialReference * | GetTargetCS ()=0 |
virtual bool | GetEmitErrors () |
virtual void | SetEmitErrors (bool) |
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 |
Static Public Member Functions | |
static void | DestroyCT (OGRCoordinateTransformation *poCT) |
OGRCoordinateTransformation destructor. More... | |
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.
|
static |
OGRCoordinateTransformation destructor.
This function is the same as OGRCoordinateTransformation::~OGRCoordinateTransformation() and OCTDestroyCoordinateTransformation()
This static method will destroy a OGRCoordinateTransformation. It is equivalent to calling delete on the object, but it ensures that the deallocation is properly executed within the OGR libraries heap on platforms where this can matter (win32).
poCT | the object to delete |
|
inlinevirtual |
Whether the transformer will emit CPLError
Reimplemented in OGRProj4CT.
|
pure virtual |
Fetch internal source coordinate system.
Implemented in OGRProj4CT.
Referenced by OGRGeometryFactory::transformWithOptions().
|
pure virtual |
Fetch internal target coordinate system.
Implemented in OGRProj4CT.
Referenced by OGRPoint::transform(), OGRSimpleCurve::transform(), OGRGeometryCollection::transform(), and OGRGeometryFactory::transformWithOptions().
|
inlinevirtual |
Set if the transformer must emit CPLError
Reimplemented in OGRProj4CT.
|
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().
|
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.
Referenced by OGRSimpleCurve::transform().