16#ifndef QGSVECTORWARPER_H
17#define QGSVECTORWARPER_H
19#include "qgis_analysis.h"
60 QString
error()
const {
return mError; }
64 QList<QgsGcpPoint> mPoints;
67 mutable QString mError;
119 long long mFeatureCount = 0;
120 std::unique_ptr<QgsVectorLayerFeatureSource> mSource;
121 QList<QgsGcpPoint> mPoints;
124 QString mDestFileName;
126 std::unique_ptr<QgsFeedback> mFeedback;
132 Result mResult = Result::Success;
133 QString mErrorMessage;
134 double mLastProgress = 0;
WkbType
The WKB type describes the number of dimensions a geometry has.
Represents a coordinate reference system (CRS).
Contains information about the context in which a coordinate transform is executed.
Wrapper for iterator of features from vector data provider or vector layer.
An interface for objects which accept features via addFeature(s) methods.
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Container of fields for a vector layer.
QgsTask(const QString &description=QString(), QgsTask::Flags flags=AllFlags)
Constructor for QgsTask.
Represents a vector layer which manages a vector based dataset.
QString errorMessage() const
Returns the descriptive error message, if an error occurred.
Result result() const
Returns the result of running the task.
void cancel() override
Notifies the task that it should terminate.
QgsVectorWarperTask(QgsGcpTransformerInterface::TransformMethod method, const QList< QgsGcpPoint > &points, const QgsCoordinateReferenceSystem &destinationCrs, QgsVectorLayer *layer, const QString &fileName)
Constructor for QgsVectorWarperTask.
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.
QgsVectorWarper(QgsGcpTransformerInterface::TransformMethod method, const QList< QgsGcpPoint > &points, const QgsCoordinateReferenceSystem &destinationCrs)
Constructor for QgsVectorWarper.