|
static QgsFields | combineFields (const QgsFields &fieldsA, const QgsFields &fieldsB, const QString &fieldsBPrefix=QString()) |
| Combines two field lists, avoiding duplicate field names (in a case-insensitive manner). More...
|
|
static QgsRectangle | combineLayerExtents (const QList< QgsMapLayer * > &layers, const QgsCoordinateReferenceSystem &crs, QgsProcessingContext &context) |
| Combines the extent of several map layers. More...
|
|
static Q_DECL_DEPRECATED QgsRectangle | combineLayerExtents (const QList< QgsMapLayer * > &layers, const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem()) |
| Combines the extent of several map layers. More...
|
|
static QList< QgsAnnotationLayer * > | compatibleAnnotationLayers (QgsProject *project, bool sort=true) |
| Returns a list of annotation layers from a project which are compatible with the processing framework. More...
|
|
static QList< QgsMapLayer * > | compatibleLayers (QgsProject *project, bool sort=true) |
| Returns a list of map layers from a project which are compatible with the processing framework. More...
|
|
static QList< QgsMeshLayer * > | compatibleMeshLayers (QgsProject *project, bool sort=true) |
| Returns a list of mesh layers from a project which are compatible with the processing framework. More...
|
|
static QList< QgsPluginLayer * > | compatiblePluginLayers (QgsProject *project, bool sort=true) |
| Returns a list of plugin layers from a project which are compatible with the processing framework. More...
|
|
static QList< QgsPointCloudLayer * > | compatiblePointCloudLayers (QgsProject *project, bool sort=true) |
| Returns a list of point cloud layers from a project which are compatible with the processing framework. More...
|
|
static QList< QgsRasterLayer * > | compatibleRasterLayers (QgsProject *project, bool sort=true) |
| Returns a list of raster layers from a project which are compatible with the processing framework. More...
|
|
static QList< QgsVectorLayer * > | compatibleVectorLayers (QgsProject *project, const QList< int > &sourceTypes=QList< int >(), bool sort=true) |
| Returns a list of vector layers from a project which are compatible with the processing framework. More...
|
|
static QString | convertToCompatibleFormat (const QgsVectorLayer *layer, bool selectedFeaturesOnly, const QString &baseName, const QStringList &compatibleFormats, const QString &preferredFormat, QgsProcessingContext &context, QgsProcessingFeedback *feedback, long long featureLimit=-1) |
| Converts a source vector layer to a file path of a vector layer of compatible format. More...
|
|
static QString | convertToCompatibleFormatAndLayerName (const QgsVectorLayer *layer, bool selectedFeaturesOnly, const QString &baseName, const QStringList &compatibleFormats, const QString &preferredFormat, QgsProcessingContext &context, QgsProcessingFeedback *feedback, QString &layerName, long long featureLimit=-1) |
| Converts a source vector layer to a file path and layer name of a vector layer of compatible format. More...
|
|
static QgsFeatureSink * | createFeatureSink (QString &destination, QgsProcessingContext &context, const QgsFields &fields, Qgis::WkbType geometryType, const QgsCoordinateReferenceSystem &crs, const QVariantMap &createOptions=QVariantMap(), const QStringList &datasourceOptions=QStringList(), const QStringList &layerOptions=QStringList(), QgsFeatureSink::SinkFlags sinkFlags=QgsFeatureSink::SinkFlags(), QgsRemappingSinkDefinition *remappingDefinition=nullptr) |
| Creates a feature sink ready for adding features. More...
|
|
static void | createFeatureSinkPython (QgsFeatureSink **sink, QString &destination, QgsProcessingContext &context, const QgsFields &fields, Qgis::WkbType geometryType, const QgsCoordinateReferenceSystem &crs, const QVariantMap &createOptions=QVariantMap()) SIP_THROW(QgsProcessingException) |
| Creates a feature sink ready for adding features. More...
|
|
static bool | decodeProviderKeyAndUri (const QString &string, QString &providerKey, QString &uri) |
| Decodes a provider key and layer uri from an encoded string, for use with encodeProviderKeyAndUri() More...
|
|
static QString | defaultPointCloudExtension () |
| Returns the default point cloud extension to use, in the absence of all other constraints (e.g. More...
|
|
static QString | defaultRasterExtension () |
| Returns the default raster extension to use, in the absence of all other constraints (e.g. More...
|
|
static QString | defaultVectorExtension () |
| Returns the default vector extension to use, in the absence of all other constraints (e.g. More...
|
|
static QString | encodeProviderKeyAndUri (const QString &providerKey, const QString &uri) |
| Encodes a provider key and layer uri to a single string, for use with decodeProviderKeyAndUri() More...
|
|
static QList< int > | fieldNamesToIndices (const QStringList &fieldNames, const QgsFields &fields) |
| Returns a list of field indices parsed from the given list of field names. More...
|
|
static QString | formatHelpMapAsHtml (const QVariantMap &map, const QgsProcessingAlgorithm *algorithm) |
| Returns a HTML formatted version of the help text encoded in a variant map for a specified algorithm. More...
|
|
static QVariant | generateIteratingDestination (const QVariant &input, const QVariant &id, QgsProcessingContext &context) |
| Converts an input parameter value for use in source iterating mode, where one individual sink is created per input feature. More...
|
|
static QString | generateTempFilename (const QString &basename) |
| Returns a temporary filename for a given file, putting it into a temporary folder (creating that folder in the process), but not changing the basename. More...
|
|
static QgsFields | indicesToFields (const QList< int > &indices, const QgsFields &fields) |
| Returns a subset of fields based on the indices of desired fields. More...
|
|
static QgsMapLayer * | mapLayerFromString (const QString &string, QgsProcessingContext &context, bool allowLoadingNewLayers=true, QgsProcessingUtils::LayerHint typeHint=QgsProcessingUtils::LayerHint::UnknownType) |
| Interprets a string as a map layer within the supplied context. More...
|
|
static QString | normalizeLayerSource (const QString &source) |
| Normalizes a layer source string for safe comparison across different operating system environments. More...
|
|
static QVariantMap | preprocessQgisProcessParameters (const QVariantMap ¶meters, bool &ok, QString &error) |
| Pre-processes a set of parameter values for the qgis_process command. More...
|
|
static QVariantMap | removePointerValuesFromMap (const QVariantMap &map) |
| Removes any raw pointer values from an input map, replacing them with appropriate string values where possible. More...
|
|
static QString | stringToPythonLiteral (const QString &string) |
| Converts a string to a Python string literal. More...
|
|
static QString | tempFolder () |
| Returns a session specific processing temporary folder for use in processing algorithms. More...
|
|
static QgsCoordinateReferenceSystem | variantToCrs (const QVariant &value, QgsProcessingContext &context, const QVariant &fallbackValue=QVariant()) |
| Converts a variant value to a coordinate reference system. More...
|
|
static QString | variantToPythonLiteral (const QVariant &value) |
| Converts a variant to a Python literal. More...
|
|
static QgsProcessingFeatureSource * | variantToSource (const QVariant &value, QgsProcessingContext &context, const QVariant &fallbackValue=QVariant()) |
| Converts a variant value to a new feature source. More...
|
|