OGR
Public Member Functions | List of all members
OGRProj4CT Class Reference
Inheritance diagram for OGRProj4CT:
OGRCoordinateTransformation

Public Member Functions

virtual OGRSpatialReferenceGetSourceCS () override
 
virtual OGRSpatialReferenceGetTargetCS () override
 
virtual int Transform (int nCount, double *x, double *y, double *z=NULL) override
 
virtual int TransformEx (int nCount, double *x, double *y, double *z=NULL, int *panSuccess=NULL) override
 
virtual bool GetEmitErrors () override
 
virtual void SetEmitErrors (bool bEmitErrors) override
 

Additional Inherited Members

- Static Public Member Functions inherited from OGRCoordinateTransformation
static void DestroyCT (OGRCoordinateTransformation *poCT)
 OGRCoordinateTransformation destructor. More...
 

Member Function Documentation

virtual bool OGRProj4CT::GetEmitErrors ( )
inlineoverridevirtual

Whether the transformer will emit CPLError

Reimplemented from OGRCoordinateTransformation.

OGRSpatialReference * OGRProj4CT::GetSourceCS ( )
overridevirtual

Fetch internal source coordinate system.

Implements OGRCoordinateTransformation.

OGRSpatialReference * OGRProj4CT::GetTargetCS ( )
overridevirtual

Fetch internal target coordinate system.

Implements OGRCoordinateTransformation.

virtual void OGRProj4CT::SetEmitErrors ( bool  )
inlineoverridevirtual

Set if the transformer must emit CPLError

Reimplemented from OGRCoordinateTransformation.

int OGRProj4CT::Transform ( int  nCount,
double *  x,
double *  y,
double *  z = NULL 
)
overridevirtual

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
nCountnumber of points to transform.
xarray of nCount X vertices, modified in place.
yarray of nCount Y vertices, modified in place.
zarray of nCount Z vertices, modified in place.
Returns
TRUE on success, or FALSE if some or all points fail to transform.

Implements OGRCoordinateTransformation.

References CPLFree, CPLMalloc(), and TransformEx().

int OGRProj4CT::TransformEx ( int  nCount,
double *  x,
double *  y,
double *  z = NULL,
int *  pabSuccess = NULL 
)
overridevirtual

Transform an array of points

Parameters
nCountNumber of points
xArray of nCount x values.
yArray of nCount y values.
zArray of nCount z values.
pabSuccessOutput array of nCount value that will be set to TRUE/FALSE
Returns
TRUE or FALSE

Implements OGRCoordinateTransformation.

References CPLAssert, CPLE_AppDefined, CPLError(), CPLRealloc(), and M_PI.

Referenced by Transform().


The documentation for this class was generated from the following file:

Generated for GDAL by doxygen 1.8.5.