Skip to content

Commit

Permalink
Merge pull request #551 from djhoese/bugfix-geodetic-crs-pm
Browse files Browse the repository at this point in the history
Fix shortcut for prime meridian checks
  • Loading branch information
djhoese authored Oct 23, 2023
2 parents c0025ed + 9c73232 commit 9e2acad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyresample/utils/proj4.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def ignore_pyproj_proj_warnings():
def get_geodetic_crs_with_no_datum_shift(crs: CRS) -> CRS:
"""Get the geodetic CRS for the provided CRS but with no prime meridian shift."""
gcrs = crs.geodetic_crs
if gcrs.prime_meridian == 0:
if gcrs.prime_meridian.longitude == 0:
return gcrs
with ignore_pyproj_proj_warnings():
gcrs_dict = gcrs.to_dict()
Expand Down

0 comments on commit 9e2acad

Please sign in to comment.