Skip to content

Commit

Permalink
Update rio_tiler/io/xarray.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jonas <[email protected]>
  • Loading branch information
vincentsarago and j08lue authored Sep 3, 2024
1 parent 71c5ba8 commit 490d461
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rio_tiler/io/xarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ def __attrs_post_init__(self):

if self.crs == WGS84_CRS and (
self.bounds[0] < -180
or self.bounds[1] < -90
or min(self.bounds[1], self.bounds[3]) < -90
or self.bounds[2] > 180
or self.bounds[3] > 90
or max(self.bounds[1], self.bounds[3]) > 90
):
raise InvalidGeographicBounds(f"Invalid geographic bounds: {self.bounds}")

Expand Down

0 comments on commit 490d461

Please sign in to comment.