Run an algorithm using 'qgis_process': pipe-friendly wrapper
Run an algorithm using 'qgis_process': pipe-friendly wrapper
qgis_run_algorithm_p() wraps qgis_run_algorithm(), passing its first argument to the first argument of the QGIS algorithm. This makes it more convenient in a pipeline (hence '_p' in the name).
.data: Passed to the first input of algorithm. If .data is a qgis_result (the result of a previous processing step), .data[[.select]] is passed instead.
algorithm: A qualified algorithm name (e.g., "native:buffer").
...: Other algorithm arguments. These values are evaluated once and immediately, so you shouldn't call qgis_tmp_file() here.
.select: String. The name of the element to select from .data if the latter is a qgis_result. Defaults to "OUTPUT".
.clean: Logical. Should an incoming qgis_result be cleaned (using qgis_clean_result()) after processing?
.quiet: Use FALSE to get extra output from 'qgis_process'. This can be useful in debugging.