Skip to content

Commit

Permalink
HOTFIX: projection issue
Browse files Browse the repository at this point in the history
  • Loading branch information
banesullivan committed Oct 14, 2023
1 parent 2753554 commit 41aed45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion localtileserver/tiler/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 41aed45

Please sign in to comment.