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

Exception: 'Unknown' object has no attribute 'metermultiplier' #36

Open
eykamp opened this issue Mar 13, 2019 · 1 comment
Open

Exception: 'Unknown' object has no attribute 'metermultiplier' #36

eykamp opened this issue Mar 13, 2019 · 1 comment
Labels

Comments

@eykamp
Copy link

eykamp commented Mar 13, 2019

I'm getting an unexpected exception. It's easy to reproduce:

>>> import pycrs
>>> pycrs.__version__
'1.0.0'
>>> crs = pycrs.parse.from_epsg_code(2230)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\eykampC\AppData\Local\Programs\Python\Python37\lib\site-packages\pycrs\parse.py", line 35, in from_epsg_code
    crs = from_proj4(proj4)
  File "C:\Users\eykampC\AppData\Local\Programs\Python\Python37\lib\site-packages\pycrs\parse.py", line 687, in from_proj4
    unit.metermultiplier.value = partdict["+to_meter"]
AttributeError: 'Unknown' object has no attribute 'metermultiplier'
>>>
@karimbahgat
Copy link
Owner

This is just a simple bug where I changed the name of 'metermultiplier' attribute to 'unitmultiplier', but forgot to change this part of the code. Will include as bugfix in next release.

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

No branches or pull requests

2 participants