Skip to content

Commit

Permalink
Update common.py
Browse files Browse the repository at this point in the history
  • Loading branch information
niowniow authored Dec 13, 2024
1 parent 5c2bd44 commit d7d47c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion leafmap/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -10510,7 +10510,8 @@ def array_to_memory_file(
)
if hasattr(array, "rio"):
if hasattr(array.rio, "crs"):
crs = array.rio.crs
if array.rio.crs is not None:
crs = array.rio.crs
if transform is None and hasattr(array.rio, "transform"):
transform = array.rio.transform()
elif source is None:
Expand Down

0 comments on commit d7d47c2

Please sign in to comment.