Execute Processing
execute_processingRun QGIS Processing algorithms with custom parameters, and optionally load output layers into the project. Suitable for geoprocessing tasks like buffering, clipping, or raster analysis.
Instructions
Execute a QGIS Processing algorithm. Use get_algorithm_help to discover parameters. Layer params accept layer IDs or file paths. Set OUTPUT to 'memory:' for temp layers. timeout: seconds before the algorithm is cancelled (default 55). Raise it for heavy raster work, or use start_processing_job, which runs in the background with no limit. load_results: add the algorithm's outputs to the project and list them in 'loaded_layers' (the processing.runAndLoadResults() behaviour). This is the only way to keep a 'TEMPORARY_OUTPUT'/'memory:' result, which is otherwise discarded when the run ends. Only vector and raster destinations are loaded, never file or folder ones. ellipsoid: ellipsoid for distance/area measurements (e.g. 'EPSG:7030' for WGS 84, 'NONE' for planimetric). Default is the open project's ellipsoid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| algorithm | Yes | ||
| ellipsoid | No | ||
| parameters | Yes | ||
| load_results | No |