Skip to content

Commit

Permalink
BUG: Handle inheritable CRS changes in pyproj 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 committed Aug 23, 2021
1 parent e763573 commit d903879
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/cartopy/crs.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@

import cartopy.trace

try:
# https://github.com/pyproj4/pyproj/pull/902
from pyproj.crs.crs import _MakerCRS
except ImportError:
_MakerCRS = _CRS


__document_these__ = ['CRS', 'Geocentric', 'Geodetic', 'Globe']

Expand Down Expand Up @@ -143,7 +149,7 @@ def to_proj4_params(self):
return OrderedDict((k, v) for k, v in proj4_params if v is not None)


class CRS(_CRS):
class CRS(_MakerCRS):
"""
Define a Coordinate Reference System using proj.
"""
Expand Down

0 comments on commit d903879

Please sign in to comment.