From 4c9113045d7ea53cf96eb4dc3dbb45cd9f2d62f3 Mon Sep 17 00:00:00 2001 From: Qiusheng Wu Date: Sat, 14 Dec 2024 15:26:39 -0500 Subject: [PATCH] Fix rio crs issue --- leafmap/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/leafmap/common.py b/leafmap/common.py index 932582f6ce..11ef636459 100644 --- a/leafmap/common.py +++ b/leafmap/common.py @@ -10512,7 +10512,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: