Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support data defined parameter values when using qgis_process tool #51412

Merged
merged 4 commits into from
Jan 16, 2023

Conversation

nyalldawson
Copy link
Collaborator

While many processing algorithms support data defined parameter values, these were not possible to specify when using the qgis_process tool (or when representing algorithm settings as JSON or qgis_process commands)

This PR adds new syntax to allow specifying data defined parameter values when running qgis_process, and ensures that all the helper functions for copying settings as JSON/qgis_process commands correctly handle data defined values.

Fixes #50482

Sponsored by the Research Institute for Nature and Forest, Flemish Govt

@nyalldawson nyalldawson added Feature Processing Relating to QGIS Processing framework or individual Processing algorithms Changelog Items that are queued to appear in the visual changelog - remove after harvesting labels Jan 10, 2023
@github-actions github-actions bot added this to the 3.30.0 milestone Jan 10, 2023
@florisvdh
Copy link
Contributor

Great! I have tested using numeric, field and expression for DISTANCE in native:buffer, both with and without JSON input. It works as a charm!!

Also works from R package qgisprocess 🎉.

@nyalldawson
Copy link
Collaborator Author

Great -- thanks for the prompt testing and feedback @florisvdh !

@nyalldawson nyalldawson merged commit 91886a2 into qgis:master Jan 16, 2023
@nyalldawson nyalldawson deleted the console_dd branch January 16, 2023 09:07
@zacharlie zacharlie added ChangelogHarvested This PR description has been harvested in the Changelog already. and removed Changelog Items that are queued to appear in the visual changelog - remove after harvesting labels Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ChangelogHarvested This PR description has been harvested in the Changelog already. Feature Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Processing dialogs don't export data-defined overrides in qgis_process and JSON syntax
4 participants