Skip to content

Commit

Permalink
don't convert crs to str if None in rio_opts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariana Barzinpour authored and Kirill888 committed Nov 20, 2024
1 parent a00c882 commit 210ae22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odc/geo/cog/_rio.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def _write_cog(
"height": h,
"count": nbands,
"dtype": pix.dtype.name,
"crs": str(geobox.crs),
"crs": str(geobox.crs) if geobox.crs is not None else None,
"transform": geobox.transform,
**_default_cog_opts(
blocksize=blocksize, shape=wh_(w, h), is_float=pix.dtype.kind == "f"
Expand Down

0 comments on commit 210ae22

Please sign in to comment.