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

Custom CRS Definition dialog is unusable #25156

Closed
qgib opened this issue Oct 7, 2017 · 5 comments
Closed

Custom CRS Definition dialog is unusable #25156

qgib opened this issue Oct 7, 2017 · 5 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! GUI/UX Related to QGIS application GUI or User Experience Regression Something which used to work, but doesn't anymore

Comments

@qgib
Copy link
Contributor

qgib commented Oct 7, 2017

Author Name: Anita Graser (@anitagraser)
Original Redmine Issue: 17258
Affected QGIS version: master
Redmine category:gui
Assignee: Nyall Dawson


The Custom CRS Definition dialog is a mess. Most of the time, I cannot make it save the new CRS I'm trying to add. At the same time, existing entries are duplicated on opening & closing the dialog.

Tested using OSGeo4W.

@qgib
Copy link
Contributor Author

qgib commented Oct 7, 2017

Author Name: Anita Graser (@anitagraser)


We have so many places in the GUI where entries are added to a list that work much better (e.g. in rule-based renderers).

This dialog was never good but now it's completely broken.

@qgib
Copy link
Contributor Author

qgib commented Oct 30, 2017

Author Name: Steven Mizuno (Steven Mizuno)


Trying to better describe the problems...

After starting QGIS and loading a project this entry appears in the Custom Projections dialog ``` * Generated CRS ()

It has no parameters and will provoke the following error message when you click OK: "The proj4 definition of ' * Generated CRS ()' is not valid." This prevents saving a newly created CRS or even just clicking OK to the dialog.

Another empty CRS is generated each time QGIS is started and a project is loaded, but within a QGIS session no further empty CRS is created (I believe the entry is being cached).

If this empty CRS is deleted using the [-] button you can exit the the dialog using OK. However, the existing entries are duplicated.

Also, when testing a CRS in the dialog the resulting coordinates don't make sense in some situations. I tried 45, -90 on a longlat CRS and got 0.7854, -1.5708. The result should be very near the input values. Using an omerc projected CRS got Error result; a tmerc projection may be correct - I haven't fully tested, but the result seemed reasonable. Note that the problem testing a CRS also occurs in 2.18.14 - I just checked.
On further research I found in the code for the custom projections dialog that the input for testing must be degrees latitude/longitude and the result is in projected units  shows. And if a longlat CRS is used the result is in radians. This isn't very clear as the labels are North/East left of the input boxes rather than Lat/Long.

Further testing of trying to save a new CRS I find that this just does not work. I tried using the default name 'new CRS' and also changing this name to something else. The CRS shows in the list but is not saved.

But you can change an existing CRS (name, parameters) and it will be saved.



@qgib
Copy link
Contributor Author

qgib commented Nov 7, 2017

Author Name: Nyall Dawson (@nyalldawson)


  • assigned_to_id was configured as Nyall Dawson

@qgib
Copy link
Contributor Author

qgib commented Nov 7, 2017

Author Name: Nyall Dawson (@nyalldawson)


PR at #5559

@qgib
Copy link
Contributor Author

qgib commented Nov 13, 2017

Author Name: Nyall Dawson (@nyalldawson)


Applied in changeset c8a62c5.


  • done_ratio was changed from 0 to 100
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Nov 13, 2017
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! GUI/UX Related to QGIS application GUI or User Experience Regression Something which used to work, but doesn't anymore labels May 25, 2019
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! GUI/UX Related to QGIS application GUI or User Experience Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

1 participant