-
-
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] Try directly interpreting string as CRS first #57508
Conversation
...before falling back to alternatives like treating it as a map layer Fixes qgis#57494
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mind adding tests?
I tried, but it's not possible (without unreasonable effort) -- there's already tests covering the functionality here, it's just the order of evaluation which has changed. |
@nyalldawson it seems to me the issue still occurs for some algorithm even using QGIS 3.37.0-Master b2a8801d76 : |
What command are you using to get them? |
@nyalldawson on an OSGeo4W Shell:
The issue is due to the fact that such algorithms have the string "ProjectCrs" as default value for the CRS parameter, but such string is not a valid QgsCoordinateReferenceSystem, thus the check in QGIS/src/core/processing/qgsprocessingparameters.cpp Lines 3115 to 3122 in 90c93ce
See QGIS/src/core/processing/qgsprocessingutils.cpp Lines 674 to 676 in 0c41c22
|
@agiudiceandrea fixed in #57576 |
...before falling back to alternatives like treating it as a map layer
Fixes #57494