Skip to content

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

@alexbruy

Description

@alexbruy

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions