|
void | initAlgorithm (const QVariantMap &configuration=QVariantMap()) override |
| Initializes the algorithm using the specified configuration. More...
|
|
virtual void | initParameters (const QVariantMap &configuration=QVariantMap()) |
| Initializes any extra parameters added by the algorithm subclass. More...
|
|
virtual QList< int > | inputLayerTypes () const |
| Returns the valid input layer types for the source layer for this algorithm. More...
|
|
virtual QString | inputParameterDescription () const |
| Returns the translated description of the parameter corresponding to the input layer. More...
|
|
virtual QString | inputParameterName () const |
| Returns the name of the parameter corresponding to the input layer. More...
|
|
virtual QgsCoordinateReferenceSystem | outputCrs (const QgsCoordinateReferenceSystem &inputCrs) const |
| Maps the input source coordinate reference system (inputCrs) to a corresponding output CRS generated by the algorithm. More...
|
|
virtual QgsFields | outputFields (const QgsFields &inputFields) const |
| Maps the input source fields (inputFields) to corresponding output fields generated by the algorithm. More...
|
|
virtual QgsProcessing::SourceType | outputLayerType () const |
| Returns the layer type for layers generated by this algorithm, if this is possible to determine in advance. More...
|
|
virtual QString | outputName () const =0 |
| Returns the translated, user visible name for any layers created by this algorithm. More...
|
|
virtual QgsWkbTypes::Type | outputWkbType (QgsWkbTypes::Type inputWkbType) const |
| Maps the input WKB geometry type (inputWkbType) to the corresponding output WKB type generated by the algorithm. More...
|
|
void | prepareSource (const QVariantMap ¶meters, QgsProcessingContext &context) |
| Read the source from parameters and context and set it. More...
|
|
QVariantMap | processAlgorithm (const QVariantMap ¶meters, QgsProcessingContext &context, QgsProcessingFeedback *feedback) override SIP_THROW(QgsProcessingException) |
| Runs the algorithm using the specified parameters. More...
|
|
virtual QgsFeatureRequest | request () const |
| Returns the feature request used for fetching features to process from the source layer. More...
|
|
virtual QgsFeatureSink::SinkFlags | sinkFlags () const |
| Returns the feature sink flags to be used for the output. More...
|
|
QgsProcessingAlgorithm::VectorProperties | sinkProperties (const QString &sink, const QVariantMap ¶meters, QgsProcessingContext &context, const QMap< QString, QgsProcessingAlgorithm::VectorProperties > &sourceProperties) const override |
| Returns the vector properties which will be used for the sink with matching name. More...
|
|
QgsCoordinateReferenceSystem | sourceCrs () const |
| Returns the source's coordinate reference system. More...
|
|
virtual QgsProcessingFeatureSource::Flag | sourceFlags () const |
| Returns the processing feature source flags to be used in the algorithm. More...
|
|
bool | supportInPlaceEdit (const QgsMapLayer *layer) const override |
| Checks whether this algorithm supports in-place editing on the given layer Default implementation for feature based algorithms run some basic compatibility checks based on the geometry type of the layer. More...
|
|
bool | addOutput (QgsProcessingOutputDefinition *outputDefinition) |
| Adds an output definition to the algorithm. More...
|
|
bool | addParameter (QgsProcessingParameterDefinition *parameterDefinition, bool createOutput=true) |
| Adds a parameter definition to the algorithm. More...
|
|
virtual QgsProcessingAlgorithm * | createInstance () const =0 |
| Creates a new instance of the algorithm class. More...
|
|
virtual void | initAlgorithm (const QVariantMap &configuration=QVariantMap())=0 |
| Initializes the algorithm using the specified configuration. More...
|
|
QgsAnnotationLayer * | parameterAsAnnotationLayer (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to an annotation layer. More...
|
|
bool | parameterAsBool (const QVariantMap ¶meters, const QString &name, const QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a static boolean value. More...
|
|
bool | parameterAsBoolean (const QVariantMap ¶meters, const QString &name, const QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a static boolean value. More...
|
|
QColor | parameterAsColor (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a color, or returns an invalid color if the parameter was not set. More...
|
|
QString | parameterAsCompatibleSourceLayerPath (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context, const QStringList &compatibleFormats, const QString &preferredFormat=QString("shp"), QgsProcessingFeedback *feedback=nullptr) const |
| Evaluates the parameter with matching name to a source vector layer file path of compatible format. More...
|
|
QString | parameterAsCompatibleSourceLayerPathAndLayerName (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context, const QStringList &compatibleFormats, const QString &preferredFormat=QString("shp"), QgsProcessingFeedback *feedback=nullptr, QString *layerName=nullptr) const |
| Evaluates the parameter with matching name to a source vector layer file path and layer name of compatible format. More...
|
|
QString | parameterAsConnectionName (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a connection name string. More...
|
|
QgsCoordinateReferenceSystem | parameterAsCrs (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a coordinate reference system. More...
|
|
QString | parameterAsDatabaseTableName (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a database table name string. More...
|
|
QDateTime | parameterAsDateTime (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a DateTime, or returns an invalid date time if the parameter was not set. More...
|
|
double | parameterAsDouble (const QVariantMap ¶meters, const QString &name, const QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a static double value. More...
|
|
int | parameterAsEnum (const QVariantMap ¶meters, const QString &name, const QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a enum value. More...
|
|
QList< int > | parameterAsEnums (const QVariantMap ¶meters, const QString &name, const QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to list of enum values. More...
|
|
QString | parameterAsEnumString (const QVariantMap ¶meters, const QString &name, const QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a static enum string. More...
|
|
QStringList | parameterAsEnumStrings (const QVariantMap ¶meters, const QString &name, const QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to list of static enum strings. More...
|
|
QString | parameterAsExpression (const QVariantMap ¶meters, const QString &name, const QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to an expression. More...
|
|
QgsRectangle | parameterAsExtent (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context, const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem()) const |
| Evaluates the parameter with matching name to a rectangular extent. More...
|
|
QgsCoordinateReferenceSystem | parameterAsExtentCrs (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context) const |
| Returns the coordinate reference system associated with an extent parameter value. More...
|
|
QgsGeometry | parameterAsExtentGeometry (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context, const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem()) const |
| Evaluates the parameter with matching name to a rectangular extent, and returns a geometry covering this extent. More...
|
|
QStringList | parameterAsFields (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a list of fields. More...
|
|
QString | parameterAsFile (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a file/folder name. More...
|
|
QStringList | parameterAsFileList (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a list of files (for QgsProcessingParameterMultipleLayers in QgsProcessing:TypeFile mode). More...
|
|
QString | parameterAsFileOutput (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a file based output destination. More...
|
|
QgsGeometry | parameterAsGeometry (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context, const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem()) const |
| Evaluates the parameter with matching name to a geometry. More...
|
|
QgsCoordinateReferenceSystem | parameterAsGeometryCrs (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context) const |
| Returns the coordinate reference system associated with a geometry parameter value. More...
|
|
int | parameterAsInt (const QVariantMap ¶meters, const QString &name, const QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a static integer value. More...
|
|
QList< int > | parameterAsInts (const QVariantMap ¶meters, const QString &name, const QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a list of integer values. More...
|
|
QgsMapLayer * | parameterAsLayer (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a map layer. More...
|
|
QList< QgsMapLayer * > | parameterAsLayerList (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a list of map layers. More...
|
|
QgsPrintLayout * | parameterAsLayout (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context) |
| Evaluates the parameter with matching name to a print layout. More...
|
|
QgsLayoutItem * | parameterAsLayoutItem (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context, QgsPrintLayout *layout) |
| Evaluates the parameter with matching name to a print layout item, taken from the specified layout. More...
|
|
QVariantList | parameterAsMatrix (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a matrix/table of values. More...
|
|
QgsMeshLayer * | parameterAsMeshLayer (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a mesh layer. More...
|
|
QString | parameterAsOutputLayer (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a output layer destination. More...
|
|
QgsPointXY | parameterAsPoint (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context, const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem()) const |
| Evaluates the parameter with matching name to a point. More...
|
|
QgsPointCloudLayer * | parameterAsPointCloudLayer (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a point cloud layer. More...
|
|
QgsCoordinateReferenceSystem | parameterAsPointCrs (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context) const |
| Returns the coordinate reference system associated with an point parameter value. More...
|
|
QList< double > | parameterAsRange (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a range of values. More...
|
|
QgsRasterLayer * | parameterAsRasterLayer (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a raster layer. More...
|
|
QString | parameterAsSchema (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a database schema name string. More...
|
|
QgsFeatureSink * | parameterAsSink (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context, QString &destinationIdentifier, const QgsFields &fields, QgsWkbTypes::Type geometryType=QgsWkbTypes::NoGeometry, const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem(), QgsFeatureSink::SinkFlags sinkFlags=QgsFeatureSink::SinkFlags(), const QVariantMap &createOptions=QVariantMap(), const QStringList &datasourceOptions=QStringList(), const QStringList &layerOptions=QStringList()) const SIP_THROW(QgsProcessingException) |
| Evaluates the parameter with matching name to a feature sink. More...
|
|
QgsProcessingFeatureSource * | parameterAsSource (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a feature source. More...
|
|
QString | parameterAsString (const QVariantMap ¶meters, const QString &name, const QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a static string value. More...
|
|
QgsVectorLayer * | parameterAsVectorLayer (const QVariantMap ¶meters, const QString &name, QgsProcessingContext &context) const |
| Evaluates the parameter with matching name to a vector layer. More...
|
|
virtual QVariantMap | postProcessAlgorithm (QgsProcessingContext &context, QgsProcessingFeedback *feedback) SIP_THROW(QgsProcessingException) |
| Allows the algorithm to perform any required cleanup tasks. More...
|
|
virtual bool | prepareAlgorithm (const QVariantMap ¶meters, QgsProcessingContext &context, QgsProcessingFeedback *feedback) SIP_THROW(QgsProcessingException) |
| Prepares the algorithm to run using the specified parameters. More...
|
|
virtual QVariantMap | processAlgorithm (const QVariantMap ¶meters, QgsProcessingContext &context, QgsProcessingFeedback *feedback) SIP_THROW(QgsProcessingException)=0 |
| Runs the algorithm using the specified parameters. More...
|
|
void | removeParameter (const QString &name) |
| Removes the parameter with matching name from the algorithm, and deletes any existing definition. More...
|
|
virtual bool | supportInPlaceEdit (const QgsMapLayer *layer) const |
| Checks whether this algorithm supports in-place editing on the given layer Default implementation returns false . More...
|
|