From 41aed4585e2a833b7ce7f97f4613e34dff79dc44 Mon Sep 17 00:00:00 2001 From: Bane Sullivan Date: Sat, 14 Oct 2023 12:26:16 -0700 Subject: [PATCH] HOTFIX: projection issue --- localtileserver/tiler/utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localtileserver/tiler/utilities.py b/localtileserver/tiler/utilities.py index 5aecb895..9dc16a17 100644 --- a/localtileserver/tiler/utilities.py +++ b/localtileserver/tiler/utilities.py @@ -140,7 +140,7 @@ def get_meta_data(tile_source: RasterioFileTileSource): meta.update(tile_source.getInternalMetadata()) # Override bounds for EPSG:4326 meta["bounds"] = get_tile_bounds(tile_source) - if isinstance(meta["projection"], CRS): + if "projection" in meta and isinstance(meta["projection"], CRS): meta["projection"] = meta["projection"].to_string() return meta