QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
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... | |
Vector layer warper which warps vector layers based on a list of source and destination GCPs.
Definition at line 38 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 26 of file qgsvectorwarper.cpp.
|
inline |
Returns the last error obtained during transformation.
Definition at line 66 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 34 of file qgsvectorwarper.cpp.