|
QGIS API Documentation 3.99.0-Master (d270888f95f)
|
A collection of utilities for working with parameters when running a processing algorithm. More...
#include <qgsprocessingparameters.h>
Static Public Member Functions | |
| static QString | descriptionFromName (const QString &name) |
| Creates an autogenerated parameter description from a parameter name. | |
| static bool | isDynamic (const QVariantMap ¶meters, const QString &name) |
Returns true if the parameter with matching name is a dynamic parameter, and must be evaluated once for every input feature processed. | |
| static QgsAnnotationLayer * | parameterAsAnnotationLayer (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to an annotation layer. | |
| static QgsAnnotationLayer * | parameterAsAnnotationLayer (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to an annotation layer. | |
| static bool | parameterAsBool (const QgsProcessingParameterDefinition *definition, const QVariant &value, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a static boolean value. | |
| static bool | parameterAsBool (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a static boolean value. | |
| static bool | parameterAsBoolean (const QgsProcessingParameterDefinition *definition, const QVariant &value, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a static boolean value. | |
| static bool | parameterAsBoolean (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a static boolean value. | |
| static QColor | parameterAsColor (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context) |
| Returns the color associated with an color parameter value, or an invalid color if the parameter was not set. | |
| static QColor | parameterAsColor (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context) |
| Returns the color associated with an point parameter value, or an invalid color if the parameter was not set. | |
| static QString | parameterAsCompatibleSourceLayerPath (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context, const QStringList &compatibleFormats, const QString &preferredFormat=QString("shp"), QgsProcessingFeedback *feedback=nullptr) |
| Evaluates the parameter with matching definition to a source vector layer file path of compatible format. | |
| static QString | parameterAsCompatibleSourceLayerPathAndLayerName (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context, const QStringList &compatibleFormats, const QString &preferredFormat=QString("shp"), QgsProcessingFeedback *feedback=nullptr, QString *layerName=nullptr) |
| Evaluates the parameter with matching definition to a source vector layer file path and layer name of compatible format. | |
| static QString | parameterAsConnectionName (const QgsProcessingParameterDefinition *definition, const QVariant &value, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a connection name string. | |
| static QString | parameterAsConnectionName (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a connection name string. | |
| static QgsCoordinateReferenceSystem | parameterAsCrs (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a coordinate reference system. | |
| static QgsCoordinateReferenceSystem | parameterAsCrs (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a coordinate reference system. | |
| static QString | parameterAsDatabaseTableName (const QgsProcessingParameterDefinition *definition, const QVariant &value, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a database table name. | |
| static QString | parameterAsDatabaseTableName (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a database table name. | |
| static QDate | parameterAsDate (const QgsProcessingParameterDefinition *definition, const QVariant &value, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a static date value. | |
| static QDate | parameterAsDate (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a static date value. | |
| static QDateTime | parameterAsDateTime (const QgsProcessingParameterDefinition *definition, const QVariant &value, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a static datetime value. | |
| static QDateTime | parameterAsDateTime (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a static datetime value. | |
| static double | parameterAsDouble (const QgsProcessingParameterDefinition *definition, const QVariant &value, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a static double value. | |
| static double | parameterAsDouble (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a static double value. | |
| static int | parameterAsEnum (const QgsProcessingParameterDefinition *definition, const QVariant &value, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a enum value. | |
| static int | parameterAsEnum (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a enum value. | |
| static QList< int > | parameterAsEnums (const QgsProcessingParameterDefinition *definition, const QVariant &value, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to list of enum values. | |
| static QList< int > | parameterAsEnums (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to list of enum values. | |
| static QString | parameterAsEnumString (const QgsProcessingParameterDefinition *definition, const QVariant &value, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a static enum string. | |
| static QString | parameterAsEnumString (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a static enum string. | |
| static QStringList | parameterAsEnumStrings (const QgsProcessingParameterDefinition *definition, const QVariant &value, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to list of static enum strings. | |
| static QStringList | parameterAsEnumStrings (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to list of static enum strings. | |
| static QString | parameterAsExpression (const QgsProcessingParameterDefinition *definition, const QVariant &value, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definitionand value to an expression. | |
| static QString | parameterAsExpression (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to an expression. | |
| static QgsRectangle | parameterAsExtent (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context, const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem()) |
| Evaluates the parameter with matching definition and value to a rectangular extent. | |
| static QgsRectangle | parameterAsExtent (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context, const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem()) |
| Evaluates the parameter with matching definition to a rectangular extent. | |
| static QgsCoordinateReferenceSystem | parameterAsExtentCrs (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context) |
| Returns the coordinate reference system associated with an extent parameter value. | |
| static QgsCoordinateReferenceSystem | parameterAsExtentCrs (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context) |
| Returns the coordinate reference system associated with an extent parameter value. | |
| static QgsGeometry | parameterAsExtentGeometry (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context, const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem()) |
| Evaluates the parameter with matching definition to a rectangular extent, and returns a geometry covering this extent. | |
| static Q_DECL_DEPRECATED QStringList | parameterAsFields (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a list of fields. | |
| static Q_DECL_DEPRECATED QStringList | parameterAsFields (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a list of fields. | |
| static QString | parameterAsFile (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a file/folder name. | |
| static QString | parameterAsFile (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a file/folder name. | |
| static QStringList | parameterAsFileList (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a list of files (for QgsProcessingParameterMultipleLayers in QgsProcessing:TypeFile mode). | |
| static QStringList | parameterAsFileList (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a list of files (for QgsProcessingParameterMultipleLayers in QgsProcessing:TypeFile mode). | |
| static QString | parameterAsFileOutput (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a file based output destination. | |
| static QString | parameterAsFileOutput (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a file based output destination. | |
| static QgsGeometry | parameterAsGeometry (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context, const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem()) |
| Evaluates the parameter with matching definition and value to a geometry. | |
| static QgsGeometry | parameterAsGeometry (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context, const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem()) |
| Evaluates the parameter with matching definition to a geometry. | |
| static QgsCoordinateReferenceSystem | parameterAsGeometryCrs (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context) |
| Returns the coordinate reference system associated with an point parameter value. | |
| static QgsCoordinateReferenceSystem | parameterAsGeometryCrs (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context) |
| Returns the coordinate reference system associated with a geometry parameter value. | |
| static int | parameterAsInt (const QgsProcessingParameterDefinition *definition, const QVariant &value, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a static integer value. | |
| static int | parameterAsInt (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a static integer value. | |
| static QList< int > | parameterAsInts (const QgsProcessingParameterDefinition *definition, const QVariant &value, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a list of integer values. | |
| static QList< int > | parameterAsInts (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a list of integer values. | |
| static QgsMapLayer * | parameterAsLayer (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context, QgsProcessingUtils::LayerHint layerHint=QgsProcessingUtils::LayerHint::UnknownType, QgsProcessing::LayerOptionsFlags flags=QgsProcessing::LayerOptionsFlags()) |
| Evaluates the parameter with matching definition and value to a map layer. | |
| static QgsMapLayer * | parameterAsLayer (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context, QgsProcessingUtils::LayerHint layerHint=QgsProcessingUtils::LayerHint::UnknownType, QgsProcessing::LayerOptionsFlags flags=QgsProcessing::LayerOptionsFlags()) |
| Evaluates the parameter with matching definition to a map layer. | |
| static QList< QgsMapLayer * > | parameterAsLayerList (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context, QgsProcessing::LayerOptionsFlags flags=QgsProcessing::LayerOptionsFlags()) |
| Evaluates the parameter with matching definition and value to a list of map layers. | |
| static QList< QgsMapLayer * > | parameterAsLayerList (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context, QgsProcessing::LayerOptionsFlags flags=QgsProcessing::LayerOptionsFlags()) |
| Evaluates the parameter with matching definition to a list of map layers. | |
| static QgsPrintLayout * | parameterAsLayout (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a print layout. | |
| static QgsPrintLayout * | parameterAsLayout (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a print layout. | |
| static QgsLayoutItem * | parameterAsLayoutItem (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context, QgsPrintLayout *layout) |
| Evaluates the parameter with matching definition and value to a print layout, taken from the specified layout. | |
| static QgsLayoutItem * | parameterAsLayoutItem (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context, QgsPrintLayout *layout) |
| Evaluates the parameter with matching definition to a print layout item, taken from the specified layout. | |
| static QVariantList | parameterAsMatrix (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a matrix/table of values. | |
| static QVariantList | parameterAsMatrix (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a matrix/table of values. | |
| static QgsMeshLayer * | parameterAsMeshLayer (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a mesh layer. | |
| static QgsMeshLayer * | parameterAsMeshLayer (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a mesh layer. | |
| static QString | parameterAsOutputFormat (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a output format. | |
| static QString | parameterAsOutputLayer (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context, bool testOnly=false) |
| Evaluates the parameter with matching definition and value to a output layer destination. | |
| static QString | parameterAsOutputLayer (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a output layer destination. | |
| static QgsPointXY | parameterAsPoint (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context, const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem()) |
| Evaluates the parameter with matching definition and value to a point. | |
| static QgsPointXY | parameterAsPoint (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context, const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem()) |
| Evaluates the parameter with matching definition to a point. | |
| static QgsPointCloudLayer * | parameterAsPointCloudLayer (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context, QgsProcessing::LayerOptionsFlags flags=QgsProcessing::LayerOptionsFlags()) |
| Evaluates the parameter with matching definition and value to a point cloud layer. | |
| static QgsPointCloudLayer * | parameterAsPointCloudLayer (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context, QgsProcessing::LayerOptionsFlags flags=QgsProcessing::LayerOptionsFlags()) |
| Evaluates the parameter with matching definition to a point cloud layer. | |
| static QgsCoordinateReferenceSystem | parameterAsPointCrs (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context) |
| Returns the coordinate reference system associated with an point parameter value. | |
| static QgsCoordinateReferenceSystem | parameterAsPointCrs (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context) |
| Returns the coordinate reference system associated with an point parameter value. | |
| static QList< double > | parameterAsRange (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a range of values. | |
| static QList< double > | parameterAsRange (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a range of values. | |
| static QgsRasterLayer * | parameterAsRasterLayer (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a raster layer. | |
| static QgsRasterLayer * | parameterAsRasterLayer (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a raster layer. | |
| static QString | parameterAsSchema (const QgsProcessingParameterDefinition *definition, const QVariant &value, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a database schema name. | |
| static QString | parameterAsSchema (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a database schema name. | |
| static QgsFeatureSink * | parameterAsSink (const QgsProcessingParameterDefinition *definition, const QVariant &value, const QgsFields &fields, Qgis::WkbType geometryType, const QgsCoordinateReferenceSystem &crs, QgsProcessingContext &context, QString &destinationIdentifier, QgsFeatureSink::SinkFlags sinkFlags=QgsFeatureSink::SinkFlags(), const QVariantMap &createOptions=QVariantMap(), const QStringList &datasourceOptions=QStringList(), const QStringList &layerOptions=QStringList()) |
| Evaluates the parameter with matching definition and value to a feature sink. | |
| static QgsFeatureSink * | parameterAsSink (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, const QgsFields &fields, Qgis::WkbType geometryType, const QgsCoordinateReferenceSystem &crs, QgsProcessingContext &context, QString &destinationIdentifier, QgsFeatureSink::SinkFlags sinkFlags=QgsFeatureSink::SinkFlags(), const QVariantMap &createOptions=QVariantMap(), const QStringList &datasourceOptions=QStringList(), const QStringList &layerOptions=QStringList()) |
| Evaluates the parameter with matching definition to a feature sink. | |
| static QgsProcessingFeatureSource * | parameterAsSource (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a feature source. | |
| static QgsProcessingFeatureSource * | parameterAsSource (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a feature source. | |
| static QString | parameterAsString (const QgsProcessingParameterDefinition *definition, const QVariant &value, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a static string value. | |
| static QString | parameterAsString (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a static string value. | |
| static QStringList | parameterAsStrings (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a list of strings (e.g. | |
| static QStringList | parameterAsStrings (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a list of strings (e.g. | |
| static QTime | parameterAsTime (const QgsProcessingParameterDefinition *definition, const QVariant &value, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a static time value. | |
| static QTime | parameterAsTime (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, const QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a static time value. | |
| static QgsVectorLayer * | parameterAsVectorLayer (const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition and value to a vector layer. | |
| static QgsVectorLayer * | parameterAsVectorLayer (const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, QgsProcessingContext &context) |
| Evaluates the parameter with matching definition to a vector layer. | |
| static QgsProcessingParameterDefinition * | parameterFromScriptCode (const QString &code) |
| Creates a new QgsProcessingParameterDefinition using the configuration from a supplied script code string. | |
| static QgsProcessingParameterDefinition * | parameterFromVariantMap (const QVariantMap &map) |
| Creates a new QgsProcessingParameterDefinition using the configuration from a supplied variant map. | |
A collection of utilities for working with parameters when running a processing algorithm.
Parameters are stored in a QVariantMap and referenced by a unique string key. The QVariants in parameters are not usually accessed directly, and instead the high level API provided through QgsProcessingParameters parameterAsString(), parameterAsDouble() are used instead.
Parameters are evaluated using a provided QgsProcessingContext, allowing the evaluation to understand available map layers and expression contexts (for expression based parameters).
Definition at line 1085 of file qgsprocessingparameters.h.
|
static |
Creates an autogenerated parameter description from a parameter name.
Definition at line 2361 of file qgsprocessingparameters.cpp.
|
static |
Returns true if the parameter with matching name is a dynamic parameter, and must be evaluated once for every input feature processed.
Definition at line 145 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to an annotation layer.
Layers will be taken from context's active project. Callers do not need to handle deletion of the returned layer.
Definition at line 2265 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to an annotation layer.
Layers will be taken from context's active project. Callers do not need to handle deletion of the returned layer.
Definition at line 2260 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a static boolean value.
Definition at line 658 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a static boolean value.
Definition at line 642 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a static boolean value.
Definition at line 674 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a static boolean value.
Definition at line 650 of file qgsprocessingparameters.cpp.
|
static |
Returns the color associated with an color parameter value, or an invalid color if the parameter was not set.
Definition at line 2166 of file qgsprocessingparameters.cpp.
|
static |
Returns the color associated with an point parameter value, or an invalid color if the parameter was not set.
Definition at line 2158 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a source vector layer file path of compatible format.
If the parameter is evaluated to an existing layer, and that layer is not of the format listed in the compatibleFormats argument, then the layer will first be exported to a compatible format in a temporary location. The function will then return the path to that temporary file.
compatibleFormats should consist entirely of lowercase file extensions, e.g. 'shp'.
The preferredFormat argument is used to specify to desired file extension to use when a temporary layer export is required. This defaults to shapefiles, because shapefiles are the future (don't believe the geopackage hype!).
When an algorithm is capable of handling multi-layer input files (such as Geopackage), it is preferable to use parameterAsCompatibleSourceLayerPathAndLayerName() which may avoid conversion in more situations.
Definition at line 871 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a source vector layer file path and layer name of compatible format.
If the parameter is evaluated to an existing layer, and that layer is not of the format listed in the compatibleFormats argument, then the layer will first be exported to a compatible format in a temporary location. The function will then return the path to that temporary file.
compatibleFormats should consist entirely of lowercase file extensions, e.g. 'shp'.
The preferredFormat argument is used to specify to desired file extension to use when a temporary layer export is required. This defaults to shapefiles, because shapefiles are the future (don't believe the geopackage hype!).
This method should be preferred over parameterAsCompatibleSourceLayerPath() when an algorithm is able to correctly handle files with multiple layers. Unlike parameterAsCompatibleSourceLayerPath(), it will not force a conversion in this case and will return the target layer name in the layerName argument.
| definition | associated parameter definition |
| parameters | input parameter value map |
| context | processing context |
| compatibleFormats | a list of lowercase file extensions compatible with the algorithm |
| preferredFormat | preferred format extension to use if conversion if required |
| feedback | feedback object |
| layerName | will be set to the target layer name for multi-layer sources (e.g. Geopackage) |
Definition at line 876 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a connection name string.
Definition at line 2213 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a connection name string.
Definition at line 2205 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a coordinate reference system.
Definition at line 1121 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a coordinate reference system.
Definition at line 1113 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a database table name.
Definition at line 2243 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a database table name.
Definition at line 2235 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a static date value.
Definition at line 384 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a static date value.
Definition at line 376 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a static datetime value.
Definition at line 347 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a static datetime value.
Definition at line 339 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a static double value.
Definition at line 222 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a static double value.
Definition at line 214 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a enum value.
Definition at line 464 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a enum value.
Definition at line 456 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to list of enum values.
Definition at line 486 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to list of enum values.
Definition at line 478 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a static enum string.
Definition at line 555 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a static enum string.
Definition at line 547 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to list of static enum strings.
Definition at line 581 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to list of static enum strings.
Definition at line 573 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definitionand value to an expression.
Definition at line 194 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to an expression.
Definition at line 186 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a rectangular extent.
If crs is set, and the original coordinate reference system of the parameter can be determined, then the extent will be automatically reprojected so that it is in the specified crs. In this case the extent of the reproject rectangle will be returned.
Definition at line 1138 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a rectangular extent.
If crs is set, and the original coordinate reference system of the parameter can be determined, then the extent will be automatically reprojected so that it is in the specified crs. In this case the extent of the reproject rectangle will be returned.
Definition at line 1129 of file qgsprocessingparameters.cpp.
|
static |
Returns the coordinate reference system associated with an extent parameter value.
Definition at line 1390 of file qgsprocessingparameters.cpp.
|
static |
Returns the coordinate reference system associated with an extent parameter value.
Definition at line 1384 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a rectangular extent, and returns a geometry covering this extent.
If crs is set, and the original coordinate reference system of the parameter can be determined, then the extent will be automatically reprojected so that it is in the specified crs. Unlike parameterAsExtent(), the reprojected rectangle returned by this function will no longer be a rectangle itself (i.e. this method returns the geometry of the actual reprojected rectangle, while parameterAsExtent() returns just the extent of the reprojected rectangle).
Definition at line 1262 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a list of fields.
Definition at line 2046 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a list of fields.
Definition at line 2038 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a file/folder name.
Definition at line 1768 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a file/folder name.
Definition at line 1757 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a list of files (for QgsProcessingParameterMultipleLayers in QgsProcessing:TypeFile mode).
Definition at line 1918 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a list of files (for QgsProcessingParameterMultipleLayers in QgsProcessing:TypeFile mode).
Definition at line 1964 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a file based output destination.
Definition at line 1070 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a file based output destination.
Definition at line 1060 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a geometry.
Definition at line 1592 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a geometry.
Definition at line 1584 of file qgsprocessingparameters.cpp.
|
static |
Returns the coordinate reference system associated with an point parameter value.
Definition at line 1710 of file qgsprocessingparameters.cpp.
|
static |
Returns the coordinate reference system associated with a geometry parameter value.
Definition at line 1704 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a static integer value.
Definition at line 249 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a static integer value.
Definition at line 241 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a list of integer values.
Definition at line 291 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a list of integer values.
Definition at line 283 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a map layer.
Layers will either be taken from context's active project, or loaded from external sources and stored temporarily in the context. In either case, callers do not need to handle deletion of the returned layer.
Definition at line 896 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a map layer.
Layers will either be taken from context's active project, or loaded from external sources and stored temporarily in the context. In either case, callers do not need to handle deletion of the returned layer.
Definition at line 888 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a list of map layers.
The flags are used to set options for loading layers (e.g. skip index generation).
Definition at line 1831 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a list of map layers.
The flags are used to set options for loading layers (e.g. skip index generation).
Definition at line 1823 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a print layout.
Definition at line 2116 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a print layout.
Definition at line 2108 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a print layout, taken from the specified layout.
Definition at line 2140 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a print layout item, taken from the specified layout.
Definition at line 2132 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a matrix/table of values.
Tables are collapsed to a 1 dimensional list.
Definition at line 1787 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a matrix/table of values.
Tables are collapsed to a 1 dimensional list.
Definition at line 1779 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a mesh layer.
Layers will either be taken from context's active project, or loaded from external sources and stored temporarily in the context. In either case, callers do not need to handle deletion of the returned layer.
Definition at line 966 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a mesh layer.
Layers will either be taken from context's active project, or loaded from external sources and stored temporarily in the context. In either case, callers do not need to handle deletion of the returned layer.
Definition at line 961 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a output format.
Output format may be empty.
Definition at line 981 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a output layer destination.
Since QGIS 3.38 the testOnly argument can be set to true to evaluate the parameter to an output layer destination for advance testing only. This prevents default behavior such as output post-processing which would otherwise occur.
Definition at line 998 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a output layer destination.
Definition at line 971 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a point.
If crs is set then the point will be automatically reprojected so that it is in the specified crs.
Definition at line 1474 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a point.
If crs is set then the point will be automatically reprojected so that it is in the specified crs.
Definition at line 1466 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a point cloud layer.
The flags are used to set options for loading layer (e.g. skip index generation).
Layers will either be taken from context's active project, or loaded from external sources and stored temporarily in the context. In either case, callers do not need to handle deletion of the returned layer.
Definition at line 2255 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a point cloud layer.
The flags are used to set options for loading layer (e.g. skip index generation).
Layers will either be taken from context's active project, or loaded from external sources and stored temporarily in the context. In either case, callers do not need to handle deletion of the returned layer.
Definition at line 2250 of file qgsprocessingparameters.cpp.
|
static |
Returns the coordinate reference system associated with an point parameter value.
Definition at line 1556 of file qgsprocessingparameters.cpp.
|
static |
Returns the coordinate reference system associated with an point parameter value.
Definition at line 1550 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a range of values.
Definition at line 1980 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a range of values.
Definition at line 1972 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a raster layer.
Layers will either be taken from context's active project, or loaded from external sources and stored temporarily in the context. In either case, callers do not need to handle deletion of the returned layer.
Definition at line 956 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a raster layer.
Layers will either be taken from context's active project, or loaded from external sources and stored temporarily in the context. In either case, callers do not need to handle deletion of the returned layer.
Definition at line 951 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a database schema name.
Definition at line 2228 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a database schema name.
Definition at line 2220 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a feature sink.
The fields, geometryType and crs parameters dictate the properties of the resulting feature sink.
Sinks will either be taken from context's active project, or created from external providers and stored temporarily in the context. The destinationIdentifier argument will be set to a string which can be used to retrieve the layer corresponding to the sink, e.g. via calling QgsProcessingUtils::mapLayerFromString().
The createOptions argument is used to pass on creation options such as layer name.
The datasourceOptions and layerOptions arguments is used to pass on GDAL-specific format driver options.
This function creates a new object and the caller takes responsibility for deleting the returned object.
| QgsProcessingException |
Definition at line 704 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a feature sink.
The fields, geometryType and crs parameters dictate the properties of the resulting feature sink.
Sinks will either be taken from context's active project, or created from external providers and stored temporarily in the context. The destinationIdentifier argument will be set to a string which can be used to retrieve the layer corresponding to the sink, e.g. via calling QgsProcessingUtils::mapLayerFromString().
The createOptions argument is used to pass on creation options such as layer name.
The datasourceOptions and layerOptions arguments is used to pass on GDAL-specific format driver options.
This function creates a new object and the caller takes responsibility for deleting the returned object.
Definition at line 690 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a feature source.
Sources will either be taken from context's active project, or loaded from external sources and stored temporarily in the context.
This function creates a new object and the caller takes responsibility for deleting the returned object.
Definition at line 787 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a feature source.
Sources will either be taken from context's active project, or loaded from external sources and stored temporarily in the context.
This function creates a new object and the caller takes responsibility for deleting the returned object.
Definition at line 779 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a static string value.
Definition at line 162 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a static string value.
Definition at line 154 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a list of strings (e.g.
field names or point cloud attributes).
Definition at line 2059 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a list of strings (e.g.
field names or point cloud attributes).
Definition at line 2051 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a static time value.
Definition at line 421 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a static time value.
Definition at line 413 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition and value to a vector layer.
Layers will either be taken from context's active project, or loaded from external sources and stored temporarily in the context. In either case, callers do not need to handle deletion of the returned layer.
Definition at line 1108 of file qgsprocessingparameters.cpp.
|
static |
Evaluates the parameter with matching definition to a vector layer.
Layers will either be taken from context's active project, or loaded from external sources and stored temporarily in the context. In either case, callers do not need to handle deletion of the returned layer.
Definition at line 1103 of file qgsprocessingparameters.cpp.
|
static |
Creates a new QgsProcessingParameterDefinition using the configuration from a supplied script code string.
The caller takes responsibility for deleting the returned object.
Definition at line 2368 of file qgsprocessingparameters.cpp.
|
static |
Creates a new QgsProcessingParameterDefinition using the configuration from a supplied variant map.
The caller takes responsibility for deleting the returned object.
Definition at line 2270 of file qgsprocessingparameters.cpp.