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

AttributeError: 'QgsProjectionSelector' object has no attribute 'selectedEpsg' #4

Open
alexbruy opened this issue Sep 7, 2016 · 0 comments

Comments

@alexbruy
Copy link

alexbruy commented Sep 7, 2016

When selecting the System_from and System_to CRS to define a transformation an error appears, indicating:

An error has occured while executing Python code:

Traceback (most recent call last):
File "/home/rph/.qgis//python/plugins/TransformationTools/editTransformationDlg.py", line 51, in selectInputCrs
self.inputCrsEdit.setText(dlg.getProjection())
File "/home/rph/.qgis//python/plugins/TransformationTools/selectCrsDlg.py", line 52, in getProjection
if self.selector.selectedEpsg() != 0:
AttributeError: 'QgsProjectionSelector' object has no attribute 'selectedEpsg'

I edited the file "selectCrsDlg.py" and changed lines 45 and 51 to the following:

line 45:
WAS:
return "EPSG:" + str(self.selector.selectedEpsg())
CHANGED TO:
return str(self.selector.selectedAuthId())

line 51:
WAS:
if self.selector.selectedEpsg() != 0:
CHANGED TO:
if self.selector.selectedAuthId() != 0:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant