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

Fix use of Sum Line Length and Count Points in Polygons in in-place mode #41321

Merged
merged 3 commits into from
Feb 3, 2021

Conversation

nyalldawson
Copy link
Collaborator

Supersedes #41315 -- instead of disabling in-place mode for these algorithms, make the algorithms fully compatible with in-place edit modes.

always fixed, so ensure we correctly obtain and use the correct
input parameter name
Sum Line Length and Count Points In Polygons result fields
when running in in-place mode

Makes these algorithms fully compatible with in place execution

Fixes qgis#39807
@nyalldawson nyalldawson added Processing Relating to QGIS Processing framework or individual Processing algorithms backport release-3_16 labels Feb 2, 2021
@github-actions github-actions bot added this to the 3.18.0 milestone Feb 2, 2021
@nyalldawson
Copy link
Collaborator Author

Unrelated test failures

@lbartoletti
Copy link
Member

Thanks @nyalldawson but as mentioned by @DelazJ I disabled in-place mode for theses algorithms since they added fields which is not allowed -- At least that's what it is written in the doc:

"They do not change the layer structure, e.g. adding or removing fields."

Has there been a change, are changes allowed on layers now?

@nyalldawson
Copy link
Collaborator Author

@lbartoletti yes -- if the algorithm is setup correctly, then when its run in in-place mode the user should be prompted for existing fields in which to store generated values (as is done in this PR)

@uclaros
Copy link
Contributor

uclaros commented Feb 3, 2021

I saw #41315 last night and came to point the use case of utilizing existing fields, but @nyalldawson you rock!

@DelazJ
Copy link
Contributor

DelazJ commented Feb 3, 2021

Is there anything we should tweak in the docs or is it not worth it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants