17#ifndef QGSPROFILEEXPORTER_H
18#define QGSPROFILEEXPORTER_H
82 std::vector< std::unique_ptr< QgsAbstractProfileGenerator > > mGenerators;
83 QVector< QgsAbstractProfileResults::Feature > mFeatures;
122 const QString &destination,
153 QString
error()
const {
return mError; }
157 std::unique_ptr< QgsProfileExporter > mExporter;
158 QList< QgsVectorLayer * > mLayers;
160 std::unique_ptr< QgsFeedback > mFeedback;
161 QString mDestination;
163 ExportResult mResult = ExportResult::Success;
165 QStringList mCreatedFiles;
ProfileExportType
Types of export for elevation profiles.
@ Features3D
Export profiles as 3D features, with elevation values stored in exported geometry Z values.
Abstract base class for objects which generate elevation profiles.
Interface for classes which can generate elevation profiles.
Contains information about the context in which a coordinate transform is executed.
Base class for feedback objects to be used for cancellation of something running in a worker thread.
ExportResult
Results of exporting the profile.
QgsProfileExporterTask(const QList< QgsAbstractProfileSource * > &sources, const QgsProfileRequest &request, Qgis::ProfileExportType type, const QString &destination, const QgsCoordinateTransformContext &transformContext)
Constructor for QgsProfileExporterTask, saving results to the specified destination file.
bool run() override
Performs the task's operation.
QgsProfileExporterTask::ExportResult result() const
Returns the result of the export operation.
void cancel() override
Notifies the task that it should terminate.
QString error() const
Returns a descriptive error message, if available.
QStringList createdFiles() const
Returns a list of layer files created during the export.
QList< QgsVectorLayer * > takeLayers()
Returns a list of vector layer containing the exported profile results.
void run(QgsFeedback *feedback=nullptr)
Runs the profile generation.
QgsProfileExporter(const QList< QgsAbstractProfileSource * > &sources, const QgsProfileRequest &request, Qgis::ProfileExportType type)
Constructor for QgsProfileExporter, using the provided list of profile sources to generate the result...
QgsProfileExporter & operator=(const QgsProfileExporter &other)=delete
QList< QgsVectorLayer * > toLayers()
Returns a list of vector layer containing the exported profile results.
QgsProfileExporter(const QgsProfileExporter &other)=delete
Encapsulates properties and constraints relating to fetching elevation profiles from different source...
QgsTask(const QString &description=QString(), QgsTask::Flags flags=AllFlags)
Constructor for QgsTask.