OGR
|
#include <ogr_spatialref.h>
Classes | |
struct | Private |
Public Member Functions | |
OGRCoordinateTransformationOptions () | |
Constructs a new OGRCoordinateTransformationOptions. More... | |
~OGRCoordinateTransformationOptions () | |
Destroys a OGRCoordinateTransformationOptions. More... | |
bool | SetAreaOfInterest (double dfWestLongitudeDeg, double dfSouthLatitudeDeg, double dfEastLongitudeDeg, double dfNorthLatitudeDeg) |
Sets an area of interest. More... | |
bool | SetCoordinateOperation (const char *pszCT, bool bReverseCT) |
Sets a coordinate operation. More... | |
Friends | |
class | OGRProjCT |
Context for coordinate transformation.
OGRCoordinateTransformationOptions::OGRCoordinateTransformationOptions | ( | ) |
Constructs a new OGRCoordinateTransformationOptions.
OGRCoordinateTransformationOptions::~OGRCoordinateTransformationOptions | ( | ) |
Destroys a OGRCoordinateTransformationOptions.
bool OGRCoordinateTransformationOptions::SetAreaOfInterest | ( | double | dfWestLongitudeDeg, |
double | dfSouthLatitudeDeg, | ||
double | dfEastLongitudeDeg, | ||
double | dfNorthLatitudeDeg | ||
) |
Sets an area of interest.
The west longitude is generally lower than the east longitude, except for areas of interest that go across the anti-meridian.
dfWestLongitudeDeg | West longitude (in degree). Must be in [-180,180] |
dfSouthLatitudeDeg | South latitude (in degree). Must be in [-90,90] |
dfEastLongitudeDeg | East longitude (in degree). Must be in [-180,180] |
dfNorthLatitudeDeg | North latitude (in degree). Must be in [-90,90] |
References CPLError().
Referenced by OCTCoordinateTransformationOptionsSetAreaOfInterest().
bool OGRCoordinateTransformationOptions::SetCoordinateOperation | ( | const char * | pszCO, |
bool | bReverseCO | ||
) |
Sets a coordinate operation.
This is a user override to be used instead of the normally computed pipeline.
The pipeline must take into account the axis order of the source and target SRS.
The pipeline may be provided as a PROJ string (single step operation or multiple step string starting with +proj=pipeline), a WKT2 string describing a CoordinateOperation, or a "urn:ogc:def:coordinateOperation:EPSG::XXXX" URN
pszCO | PROJ or WKT string describing a coordinate operation |
bReverseCO | Whether the PROJ or WKT string should be evaluated in the reverse path |
Referenced by OCTCoordinateTransformationOptionsSetOperation().