QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
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.
 
QString error () const
 Returns the last error obtained during transformation.
 
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.
 

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 35 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 27 of file qgsvectorwarper.cpp.

Member Function Documentation

◆ error()

QString QgsVectorWarper::error ( ) const
inline

Returns the last error obtained during transformation.

Definition at line 59 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: