QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
Public Member Functions | List of all members
QgsVectorWarper Class Reference

Vector layer warper which warps vector layers based on a list of source and destination GCPs. More...

#include <qgsvectorwarper.h>

Public Member Functions

 QgsVectorWarper (QgsGcpTransformerInterface::TransformMethod method, const QList< QgsGcpPoint > &points, const QgsCoordinateReferenceSystem &destinationCrs)
 Constructor for QgsVectorWarper. More...
 
QString error () const
 Returns the last error obtained during transformation. More...
 
bool transformFeatures (QgsFeatureIterator &iterator, QgsFeatureSink *sink, const QgsCoordinateTransformContext &context, QgsFeedback *feedback=nullptr) const
 Transforms the features from iterator and adds the results to the specified sink. More...
 

Detailed Description

Vector layer warper which warps vector layers based on a list of source and destination GCPs.

Since
QGIS 3.26

Definition at line 38 of file qgsvectorwarper.h.

Constructor & Destructor Documentation

◆ QgsVectorWarper()

QgsVectorWarper::QgsVectorWarper ( QgsGcpTransformerInterface::TransformMethod  method,
const QList< QgsGcpPoint > &  points,
const QgsCoordinateReferenceSystem destinationCrs 
)
explicit

Constructor for QgsVectorWarper.

Parameters
methodspecifies the transformation method
pointslist of GCP points to use for the transformation
destinationCrstarget CRS for transformed features

Definition at line 26 of file qgsvectorwarper.cpp.

Member Function Documentation

◆ error()

QString QgsVectorWarper::error ( ) const
inline

Returns the last error obtained during transformation.

Definition at line 66 of file qgsvectorwarper.h.

◆ transformFeatures()

bool QgsVectorWarper::transformFeatures ( QgsFeatureIterator iterator,
QgsFeatureSink sink,
const QgsCoordinateTransformContext context,
QgsFeedback feedback = nullptr 
) const

Transforms the features from iterator and adds the results to the specified sink.

The optional feedback argument can be used for progress reporting and cancellation.

Returns
true if all features were successfully transformed

Definition at line 34 of file qgsvectorwarper.cpp.


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