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

set default value for CRS parameter in Define Shapefile projection algorithm (fix #53309) #53388

Merged
merged 1 commit into from Jun 7, 2023
Merged

set default value for CRS parameter in Define Shapefile projection algorithm (fix #53309) #53388

merged 1 commit into from Jun 7, 2023

Conversation

alexbruy
Copy link
Contributor

@alexbruy alexbruy commented Jun 7, 2023

Description

If a default value for parameter is not set, the parameter should be marked as optional in order to have proper support for invalid CRS in the widget. If widget does not allow invalid CRS but invalid CRS is set, it will fail to validate selection.

Fixes #53309.

algorithm (fix #53309)

If default value is not set and prameter is not optional its widget end
up in conflicting state: invalid CRS is set but widget requires a valid
one. As a result even if user selects a valid crs, widget fails to
validate selection.
@alexbruy alexbruy added Processing Relating to QGIS Processing framework or individual Processing algorithms Bug Either a bug report, or a bug fix. Let's hope for the latter! backport queued_ltr_backports Queued Backports labels Jun 7, 2023
@github-actions github-actions bot added this to the 3.32.0 milestone Jun 7, 2023
@alexbruy alexbruy removed the backport queued_ltr_backports Queued Backports label Jun 7, 2023
@nyalldawson nyalldawson merged commit 8923c43 into qgis:master Jun 7, 2023
40 checks passed
@nyalldawson
Copy link
Collaborator

We should also merge #53393, which fixes the related issues in the widget itself

@alexbruy alexbruy deleted the define-crs-selection-fix branch June 8, 2023 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CRS selector not working in Define Shapefile projection processing algorithm
2 participants