QGIS API Documentation 3.41.0-Master (25ec5511245)
|
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. | |
Vector layer warper which warps vector layers based on a list of source and destination GCPs.
Definition at line 35 of file qgsvectorwarper.h.
|
explicit |
Constructor for QgsVectorWarper.
method | specifies the transformation method |
points | list of GCP points to use for the transformation |
destinationCrs | target CRS for transformed features |
Definition at line 27 of file qgsvectorwarper.cpp.
|
inline |
Returns the last error obtained during transformation.
Definition at line 63 of file qgsvectorwarper.h.
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.
true
if all features were successfully transformed Definition at line 35 of file qgsvectorwarper.cpp.