Skip to content

Commit

Permalink
Update morecantile/models.py
Browse files Browse the repository at this point in the history
add check on geographic_crs, if None raise a ValueError

Co-authored-by: Vincent Sarago <[email protected]>
  • Loading branch information
AndrewAnnex and vincentsarago authored Oct 4, 2024
1 parent 764f0ed commit d4f4f38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions morecantile/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,8 @@ def custom(
"""
# TODO is this correct to always assume?
geographic_crs = geographic_crs or crs.geodetic_crs
if not geographic_crs:
raise ValueError("CRS doesn't have internal geodeticCRS/geographicCRS defined, please provide one")

matrix_scale = matrix_scale or [1, 1]

Expand Down

0 comments on commit d4f4f38

Please sign in to comment.