Skip to content

Commit

Permalink
update to ensure self._geographic_crs will be a pyproj CRS object. Li…
Browse files Browse the repository at this point in the history
…kely a lot more could be done here to error catch but this could be reasonably robust as is
  • Loading branch information
AndrewAnnex authored Aug 26, 2024
1 parent cb36d63 commit 27d9192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion morecantile/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 27d9192

Please sign in to comment.