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

CRS selector not working #31753

Closed
gioman opened this issue Sep 13, 2019 · 11 comments
Closed

CRS selector not working #31753

gioman opened this issue Sep 13, 2019 · 11 comments
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Projections/Transformations Related to coordinate reference systems or coordinate transformation Regression Something which used to work, but doesn't anymore

Comments

@gioman
Copy link
Contributor

gioman commented Sep 13, 2019

This is in the GDAL tool "Export to PostgreSQL" (the dialog to choose a CRS is all greyed out).

As the parameters is mandatory (I believe it should not be) then the user cannot use the tool at all unless the needed CRS is among the list/dropdown of the latest used.

This affects 3.4 but not master (and I can't spot any important difference in the code in the the two versions, but of course I'm probably wrong).

@gioman gioman added Processing Relating to QGIS Processing framework or individual Processing algorithms Regression Something which used to work, but doesn't anymore Bug Either a bug report, or a bug fix. Let's hope for the latter! labels Sep 13, 2019
@gioman gioman changed the title "assign output CRS" does not allow to select a CRS CRS selector does not working in Processing Sep 23, 2019
@gioman
Copy link
Contributor Author

gioman commented Sep 23, 2019

This affects also QGIS's "define layer projection".

@jagodki
Copy link

jagodki commented Sep 24, 2019

I can reproduce the problem with the CRS selector in QGIS 3.4.9 on Windows 10. The CRS selector of the plugin Offline-MapMatching (opened from the vector menu, toolbar and the toolbox) is also completely gray. I cannot reproduce the problem in QGIS 3.4 on macOS.

@gioman gioman changed the title CRS selector does not working in Processing CRS selector not working Oct 1, 2019
@gioman gioman removed the Processing Relating to QGIS Processing framework or individual Processing algorithms label Oct 1, 2019
@gioman
Copy link
Contributor Author

gioman commented Oct 1, 2019

Yeah, I have also seen this in plugins.

@Gustry
Copy link
Contributor

Gustry commented Oct 2, 2019

I can confirm on QGIS 3.4.12 too.
The CRS selector is totally disabled with this code:

        self.addParameter(
            QgsProcessingParameterCrs(
                self.CRS,
                self.tr('Coordinate Reference System'),
            )
        )

and makes it impossible to use the Processing algorithm.

It's working well with a default CRS value such as:

        self.addParameter(
            QgsProcessingParameterCrs(
                self.CRS,
                self.tr('Coordinate Reference System'),
                defaultValue='EPSG:2154',
            )
        )

@gioman
Copy link
Contributor Author

gioman commented Oct 2, 2019

I can confirm on QGIS 3.4.12 too.

@Gustry
so this mean that there was an underlying change that make necessary now to always specify a default CRS?

@Gustry
Copy link
Contributor

Gustry commented Oct 2, 2019

@gioman I don't know, I'm just working on a new Processing provider and I notice I needed to define a default projection to make it work.

@gioman
Copy link
Contributor Author

gioman commented Oct 2, 2019

@Gustry thanks!

anyone has idea about what is going on here?

@nyalldawson
Copy link
Collaborator

The fix might be: 63370d9

@gioman
Copy link
Contributor Author

gioman commented Oct 23, 2019

I have seen this on a number of 3.4.12 installations at a training, in this case in the CRS dialog of the "add delimited text layer" core tool.

@sigmoe
Copy link

sigmoe commented Nov 11, 2019

For me, the CRS selector doesn't work only in the "Add delimited text layer".
It works correctly in:

  • CRS Settings,
  • CRS Project properties,
  • CRS Layer property,
    ...
    In QGIS v3.4.13.

@nyalldawson nyalldawson added the Projections/Transformations Related to coordinate reference systems or coordinate transformation label Dec 13, 2019
@nyalldawson nyalldawson self-assigned this Dec 13, 2019
nyalldawson added a commit to nyalldawson/QGIS that referenced this issue Dec 15, 2019
nyalldawson added a commit that referenced this issue Dec 16, 2019
@Location-Artistry
Copy link

Does this fix the issue with not being able to set the CRS in QGIS 3.4?

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! Projections/Transformations Related to coordinate reference systems or coordinate transformation Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

6 participants