PROJ C++ API
|
Creates coordinate operations. This factory is capable to find coordinate transformations or conversions between two coordinate reference systems. More...
#include <coordinateoperation.hpp>
Public Member Functions | |
CoordinateOperationPtr | createOperation (const crs::CRSNNPtr &sourceCRS, const crs::CRSNNPtr &targetCRS) const |
Find a CoordinateOperation from sourceCRS to targetCRS. More... | |
std::vector< CoordinateOperationNNPtr > | createOperations (const crs::CRSNNPtr &sourceCRS, const crs::CRSNNPtr &targetCRS, const CoordinateOperationContextNNPtr &context) const |
Find a list of CoordinateOperation from sourceCRS to targetCRS. More... | |
Static Public Member Functions | |
static CoordinateOperationFactoryNNPtr | create () |
Instanciate a CoordinateOperationFactory. | |
Creates coordinate operations. This factory is capable to find coordinate transformations or conversions between two coordinate reference systems.
CoordinateOperationPtr osgeo::proj::operation::CoordinateOperationFactory::createOperation | ( | const crs::CRSNNPtr & | sourceCRS, |
const crs::CRSNNPtr & | targetCRS | ||
) | const |
Find a CoordinateOperation from sourceCRS to targetCRS.
This is a helper of createOperations(), using a coordinate operation context with no authority factory (so no catalog searching is done), no desired accuracy and no area of interest. This returns the first operation of the result set of createOperations(), or null if none found.
sourceCRS | source CRS. |
targetCRS | source CRS. |
std::vector< CoordinateOperationNNPtr > osgeo::proj::operation::CoordinateOperationFactory::createOperations | ( | const crs::CRSNNPtr & | sourceCRS, |
const crs::CRSNNPtr & | targetCRS, | ||
const CoordinateOperationContextNNPtr & | context | ||
) | const |
Find a list of CoordinateOperation from sourceCRS to targetCRS.
The operations are sorted with the most relevant ones first: by descending area (intersection of the transformation area with the area of interest, or intersection of the transformation with the area of use of the CRS), and by increasing accuracy. Operations with unknown accuracy are sorted last, whatever their area.
sourceCRS | source CRS. |
targetCRS | source CRS. |
context | Search context. |