From 27d919202a324436b7aed261e26b87b3402b545b Mon Sep 17 00:00:00 2001 From: "Dr. Andrew Annex" Date: Mon, 26 Aug 2024 14:35:41 -0700 Subject: [PATCH] update to ensure self._geographic_crs will be a pyproj CRS object. Likely a lot more could be done here to error catch but this could be reasonably robust as is --- morecantile/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morecantile/models.py b/morecantile/models.py index 90550b0..36412f0 100644 --- a/morecantile/models.py +++ b/morecantile/models.py @@ -499,7 +499,7 @@ def __init__(self, **data): """Set private attributes.""" super().__init__(**data) - self._geographic_crs = data.get("_geographic_crs", WGS84_CRS) + self._geographic_crs = pyproj.CRS.from_user_input(data.get("_geographic_crs", WGS84_CRS)) try: self._to_geographic = pyproj.Transformer.from_crs(