Processing dialogs don't export data-defined overrides in qgis_process and JSON syntax #50482
Closed
1 of 2 tasks
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Processing
Relating to QGIS Processing framework or individual Processing algorithms
What is the bug or the crash?
Several processing algorithms provide a data-defined override button next to a parameter, so that an attribute field or an expression can be inserted instead of a fixed value. Examples are the numerical
DISTANCE
parameter ofnative:buffer
, and the booleanALL_PARTS
parameter ofnative:centroids
.The processing dialogs (tool dialog and history dialog) provide a means to export the chosen parameters as
qgis_process
command syntax or as a JSON string ('Advanced' button, or right clicking a history item). Both options are used in geospatial scripting outside of QGIS and Python, e.g. in bash or R.However, the value of a data-overridden parameter is currently not captured in the exported string; instead it is empty (
null
in the case of JSON). E.g. we get below result – look at theDISTANCE
value:qgis_process run native:buffer --ellipsoid=EPSG:7030 --INPUT='/usr/share/qgis/resources/data/world_map.gpkg|layername=countries' --DISTANCE= --SEGMENTS=5 --END_CAP_STYLE=0 --JOIN_STYLE=0 --MITER_LIMIT=2 --DISSOLVE=false --OUTPUT=TEMPORARY_OUTPUT
and
Steps to reproduce the issue
native:buffer
(to control a numerical value) ornative:centroids
(to control a boolean value).null
in the case of JSON).Versions
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: