QGIS API Documentation 3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsGDALGeorefTransform Class Reference

Interface to gdal thin plate splines and 1st/2nd/3rd order polynomials. More...

#include <qgsgcptransformer.h>

Inheritance diagram for QgsGDALGeorefTransform:
Inheritance graph
[legend]

Public Member Functions

 QgsGDALGeorefTransform (bool useTPS, unsigned int polynomialOrder)
 Constructor for QgsGDALGeorefTransform.
 
 ~QgsGDALGeorefTransform () override
 
QgsGcpTransformerInterfaceclone () const override
 Clones the transformer, returning a new copy of the transformer with the same parameters as this one.
 
GDALTransformerFunc GDALTransformer () const override
 Returns function pointer to the GDALTransformer function.
 
void * GDALTransformerArgs () const override
 Returns pointer to the GDALTransformer arguments.
 
TransformMethod method () const override
 Returns the transformation method.
 
int minimumGcpCount () const override
 Returns the minimum number of Ground Control Points (GCPs) required for parameter fitting.
 
bool updateParametersFromGcps (const QVector< QgsPointXY > &sourceCoordinates, const QVector< QgsPointXY > &destinationCoordinates, bool invertYAxis=false) override
 Fits transformation parameters using the specified Ground Control Points (GCPs) lists of source and destination coordinates.
 
- Public Member Functions inherited from QgsGcpTransformerInterface
 QgsGcpTransformerInterface ()=default
 
 QgsGcpTransformerInterface (const QgsGcpTransformerInterface &other)=delete
 QgsGcpTransformerInterface cannot be copied - use clone() instead.
 
virtual ~QgsGcpTransformerInterface ()=default
 
QgsGcpTransformerInterfaceoperator= (const QgsGcpTransformerInterface &other)=delete
 QgsGcpTransformerInterface cannot be copied - use clone() instead.
 
bool transform (double &x, double &y, bool inverseTransform=false) const
 Transforms the point (x, y) from source to destination coordinates.
 

Additional Inherited Members

- Public Types inherited from QgsGcpTransformerInterface
enum class  TransformMethod : int {
  Linear , Helmert , PolynomialOrder1 , PolynomialOrder2 ,
  PolynomialOrder3 , ThinPlateSpline , Projective , InvalidTransform = 65535
}
 Available transformation methods. More...
 
- Static Public Member Functions inherited from QgsGcpTransformerInterface
static QgsGcpTransformerInterfacecreate (TransformMethod method)
 Creates a new QgsGcpTransformerInterface subclass representing the specified transform method.
 
static QgsGcpTransformerInterfacecreateFromParameters (TransformMethod method, const QVector< QgsPointXY > &sourceCoordinates, const QVector< QgsPointXY > &destinationCoordinates)
 Creates a new QgsGcpTransformerInterface subclass representing the specified transform method, initialized using the given lists of source and destination coordinates.
 
static QString methodToString (TransformMethod method)
 Returns a translated string representing the specified transform method.
 

Detailed Description

Interface to gdal thin plate splines and 1st/2nd/3rd order polynomials.

Note
Not available in Python bindings
Since
QGIS 3.20

Definition at line 220 of file qgsgcptransformer.h.

Constructor & Destructor Documentation

◆ QgsGDALGeorefTransform()

QgsGDALGeorefTransform::QgsGDALGeorefTransform ( bool  useTPS,
unsigned int  polynomialOrder 
)

Constructor for QgsGDALGeorefTransform.

Definition at line 319 of file qgsgcptransformer.cpp.

◆ ~QgsGDALGeorefTransform()

QgsGDALGeorefTransform::~QgsGDALGeorefTransform ( )
override

Definition at line 325 of file qgsgcptransformer.cpp.

Member Function Documentation

◆ clone()

QgsGcpTransformerInterface * QgsGDALGeorefTransform::clone ( ) const
overridevirtual

Clones the transformer, returning a new copy of the transformer with the same parameters as this one.

Caller takes ownership of the returned object.

Implements QgsGcpTransformerInterface.

Definition at line 330 of file qgsgcptransformer.cpp.

◆ GDALTransformer()

GDALTransformerFunc QgsGDALGeorefTransform::GDALTransformer ( ) const
overridevirtual

Returns function pointer to the GDALTransformer function.

Implements QgsGcpTransformerInterface.

Definition at line 384 of file qgsgcptransformer.cpp.

◆ GDALTransformerArgs()

void * QgsGDALGeorefTransform::GDALTransformerArgs ( ) const
overridevirtual

Returns pointer to the GDALTransformer arguments.

Implements QgsGcpTransformerInterface.

Definition at line 396 of file qgsgcptransformer.cpp.

◆ method()

QgsGcpTransformerInterface::TransformMethod QgsGDALGeorefTransform::method ( ) const
overridevirtual

Returns the transformation method.

Implements QgsGcpTransformerInterface.

Definition at line 401 of file qgsgcptransformer.cpp.

◆ minimumGcpCount()

int QgsGDALGeorefTransform::minimumGcpCount ( ) const
overridevirtual

Returns the minimum number of Ground Control Points (GCPs) required for parameter fitting.

Implements QgsGcpTransformerInterface.

Definition at line 376 of file qgsgcptransformer.cpp.

◆ updateParametersFromGcps()

bool QgsGDALGeorefTransform::updateParametersFromGcps ( const QVector< QgsPointXY > &  sourceCoordinates,
const QVector< QgsPointXY > &  destinationCoordinates,
bool  invertYAxis = false 
)
overridevirtual

Fits transformation parameters using the specified Ground Control Points (GCPs) lists of source and destination coordinates.

If invertYAxis is set to true then the y-axis of source coordinates will be inverted, e.g. to allow for transformation of raster layers with ascending top-to-bottom vertical axis coordinates.

Returns
true on success, false on failure

Implements QgsGcpTransformerInterface.

Definition at line 337 of file qgsgcptransformer.cpp.


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