-
Notifications
You must be signed in to change notification settings - Fork 364
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 returned by caropy.crs.CRS with proj4_params #710
Comments
That's a really interesting question - thank you! The
So how come >>> class Foo(object): pass
...
>>> foo = Foo()
>>> foo.bar = 'This works!' So... where does that leave us? A simple workaround for now is just to create a trivial Python subclass: >>> class Foo(cartopy.crs.CRS): pass
...
>>> Foo({'proj': 'lonlat'}).proj4_params
{'ellps': 'WGS84', 'proj': 'lonlat'} But it seems reasonable that we should also make |
NB. If you're trying to define a new map then you don't want to be doing this. A map needs to be a subclass of |
Same issue as #813. |
You guys should fix this issue. I suggest removing the This will allow coders to abstract the class. |
Example:
What am I missing? Or is this a bug?
The text was updated successfully, but these errors were encountered: