PROJ C++ API
Public Member Functions | Static Public Member Functions | List of all members
osgeo::proj::operation::CoordinateOperationFactory Class Reference

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< CoordinateOperationNNPtrcreateOperations (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.
 

Detailed Description

Creates coordinate operations. This factory is capable to find coordinate transformations or conversions between two coordinate reference systems.

Remarks
Implements (partially) CoordinateOperationFactory from GeoAPI

Member Function Documentation

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.

Parameters
sourceCRSsource CRS.
targetCRSsource CRS.
Returns
a CoordinateOperation or nullptr.
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.

Parameters
sourceCRSsource CRS.
targetCRSsource CRS.
contextSearch context.
Returns
a list

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