Function: runAndLoadResults¶
- qgis.processing.runAndLoadResults(algOrName: str | QgsProcessingAlgorithm, parameters: Dict[str, object], feedback: QgsProcessingFeedback | None = None, context: QgsProcessingContext | None = None) Dict | None ¶
Executes given algorithm and load its results into the current QGIS project when possible.
- Parameters:
algOrName – Either an instance of an algorithm, or an algorithm’s ID
parameters – Algorithm parameters dictionary
feedback – Processing feedback object
context – Processing context object
- Returns:
algorithm results as a dictionary, or None if execution failed
- Return type:
Union[dict, None]
- Raises:
QgsNotSupportedException
if the Processing plugin has not been loaded