|
| QgsProcessingContext () |
| Constructor for QgsProcessingContext. More...
|
|
| QgsProcessingContext (const QgsProcessingContext &other)=delete |
| QgsProcessingContext cannot be copied. More...
|
|
| ~QgsProcessingContext () |
|
void | addLayerToLoadOnCompletion (const QString &layer, const QgsProcessingContext::LayerDetails &details) |
| Adds a layer to load (by ID or datasource) into the canvas upon completion of the algorithm or model. More...
|
|
QgsUnitTypes::AreaUnit | areaUnit () const |
| Returns the area unit to use for area calculations. More...
|
|
QStringList | asQgisProcessArguments (QgsProcessingContext::ProcessArgumentFlags flags=QgsProcessingContext::ProcessArgumentFlags()) const |
| Returns list of the equivalent qgis_process arguments representing the settings from the context. More...
|
|
void | copyThreadSafeSettings (const QgsProcessingContext &other) |
| Copies all settings which are safe for use across different threads from other to this context. More...
|
|
QgsDateTimeRange | currentTimeRange () const |
| Returns the current time range to use for temporal operations. More...
|
|
QString | defaultEncoding () const |
| Returns the default encoding to use for newly created files. More...
|
|
std::function< void(const QgsFeature &) > | defaultInvalidGeometryCallbackForCheck (QgsFeatureRequest::InvalidGeometryCheck check, QgsFeatureSource *source=nullptr) const |
| Returns the default callback function to use for a particular invalid geometry check. More...
|
|
QgsUnitTypes::DistanceUnit | distanceUnit () const |
| Returns the distance unit to use for distance calculations. More...
|
|
QString | ellipsoid () const |
| Returns the ellipsoid to use for distance and area calculations. More...
|
|
QVariantMap | exportToMap () const |
| Exports the context's settings to a variant map. More...
|
|
QgsExpressionContext & | expressionContext () |
| Returns the expression context. More...
|
|
const QgsExpressionContext & | expressionContext () const |
| Returns the expression context. More...
|
|
QgsProcessingFeedback * | feedback () |
| Returns the associated feedback object. More...
|
|
QgsProcessingContext::Flags | flags () const |
| Returns any flags set in the context. More...
|
|
QgsMapLayer * | getMapLayer (const QString &identifier) |
| Returns a map layer from the context with a matching identifier. More...
|
|
std::function< void(const QgsFeature &) > | invalidGeometryCallback (QgsFeatureSource *source=nullptr) const |
| Returns the callback function to use when encountering an invalid geometry and invalidGeometryCheck() is set to GeometryAbortOnInvalid. More...
|
|
QgsFeatureRequest::InvalidGeometryCheck | invalidGeometryCheck () const |
| Returns the behavior used for checking invalid geometries in input layers. More...
|
|
QMap< QString, QgsProcessingContext::LayerDetails > | layersToLoadOnCompletion () const |
| Returns a map of layers (by ID or datasource) to LayerDetails, to load into the canvas upon completion of the algorithm or model. More...
|
|
QgsProcessingContext::LayerDetails & | layerToLoadOnCompletionDetails (const QString &layer) |
| Returns a reference to the details for a given layer which is loaded on completion of the algorithm or model. More...
|
|
LogLevel | logLevel () const |
| Returns the logging level for algorithms to use when pushing feedback messages to users. More...
|
|
QgsProcessingContext & | operator= (const QgsProcessingContext &other)=delete |
| QgsProcessingContext cannot be copied. More...
|
|
QString | preferredRasterFormat () const |
| Returns the preferred raster format to use for vector outputs. More...
|
|
QString | preferredVectorFormat () const |
| Returns the preferred vector format to use for vector outputs. More...
|
|
QgsProject * | project () const |
| Returns the project in which the algorithm is being executed. More...
|
|
void | pushToThread (QThread *thread) |
| Pushes the thread affinity for the context (including all layers contained in the temporaryLayerStore()) into another thread. More...
|
|
void | setAreaUnit (QgsUnitTypes::AreaUnit areaUnit) |
| Sets the unit to use for area calculations. More...
|
|
void | setCurrentTimeRange (const QgsDateTimeRange ¤tTimeRange) |
| Sets the current time range to use for temporal operations. More...
|
|
void | setDefaultEncoding (const QString &encoding) |
| Sets the default encoding to use for newly created files. More...
|
|
void | setDistanceUnit (QgsUnitTypes::DistanceUnit unit) |
| Sets the unit to use for distance calculations. More...
|
|
void | setEllipsoid (const QString &ellipsoid) |
| Sets a specified ellipsoid to use for distance and area calculations. More...
|
|
void | setExpressionContext (const QgsExpressionContext &context) |
| Sets the expression context. More...
|
|
void | setFeedback (QgsProcessingFeedback *feedback) |
| Sets an associated feedback object. More...
|
|
void | setFlags (QgsProcessingContext::Flags flags) |
| Sets flags for the context. More...
|
|
void | setInvalidGeometryCallback (const std::function< void(const QgsFeature &) > &callback) |
| Sets a callback function to use when encountering an invalid geometry and invalidGeometryCheck() is set to GeometryAbortOnInvalid. More...
|
|
void | setInvalidGeometryCheck (QgsFeatureRequest::InvalidGeometryCheck check) |
| Sets the behavior used for checking invalid geometries in input layers. More...
|
|
void | setLayersToLoadOnCompletion (const QMap< QString, QgsProcessingContext::LayerDetails > &layers) |
| Sets the map of layers (by ID or datasource) to LayerDetails, to load into the canvas upon completion of the algorithm or model. More...
|
|
void | setLogLevel (LogLevel level) |
| Sets the logging level for algorithms to use when pushing feedback messages to users. More...
|
|
void | setPreferredRasterFormat (const QString &format) |
| Sets the preferred raster format to use for vector outputs. More...
|
|
void | setPreferredVectorFormat (const QString &format) |
| Sets the preferred vector format to use for vector outputs. More...
|
|
void | setProject (QgsProject *project) |
| Sets the project in which the algorithm will be executed. More...
|
|
void | setTransformContext (const QgsCoordinateTransformContext &context) |
| Sets the coordinate transform context. More...
|
|
void | setTransformErrorCallback (const std::function< void(const QgsFeature &) > &callback) |
| Sets a callback function to use when encountering a transform error when iterating features. More...
|
|
QgsMapLayer * | takeResultLayer (const QString &id) |
| Takes the result map layer with matching id from the context and transfers ownership of it back to the caller. More...
|
|
void | takeResultsFrom (QgsProcessingContext &context) |
| Takes the results from another context and merges them with the results currently stored in this context. More...
|
|
QgsMapLayerStore * | temporaryLayerStore () |
| Returns a reference to the layer store used for storing temporary layers during algorithm execution. More...
|
|
QThread * | thread () |
| Returns the thread in which the context lives. More...
|
|
QgsCoordinateTransformContext | transformContext () const |
| Returns the coordinate transform context. More...
|
|
std::function< void(const QgsFeature &) > | transformErrorCallback () const |
| Returns the callback function to use when encountering a transform error when iterating features. More...
|
|
bool | willLoadLayerOnCompletion (const QString &layer) const |
| Returns true if the given layer (by ID or datasource) will be loaded into the current project upon completion of the algorithm or model. More...
|
|