-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Processing in-place do not check validity when fixing geometries #8730
Processing in-place do not check validity when fixing geometries #8730
Conversation
Could |
@m-kuhn yes, that's probably much less "ugly" ;) I'l l see if it can be used in this context. |
@m-kuhn it worked! Thanks. |
Nice. |
No: all algorithms can be used for in-place, there are separate code paths for the two types. |
How does it decide which input to take in such cases? What I'm wondering if there's a more portable solution that works for any algorithm. |
I'm not sure about what you mean but I don't see a way to set the context geom flags for non-feature-based (unless the sourceFlags() is moved to the base class), have a look to: https://github.com/qgis/QGIS/blob/master/python/plugins/processing/gui/AlgorithmExecutor.py#L149 for feature based and a few lines below for the other case: https://github.com/qgis/QGIS/blob/master/python/plugins/processing/gui/AlgorithmExecutor.py#L194 |
Oh, I didn't realize that the code paths are so different. Looks like that's taken care of with https://github.com/qgis/QGIS/blob/master/python/plugins/processing/gui/AlgorithmExecutor.py#L198 for the other case (in which it chooses the parameters called I think it would be nice to also have this flag on QgsProcessingParameterFeatureSource, but that's a different story. Looks good to me now. |
Fixes #20812