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 committed Nov 7, 2024
1 parent a00c882 commit 198714d
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 198714d

Please sign in to comment.