odc.geo.cog.write_cog_layers

odc.geo.cog.write_cog_layers(layers, dst=':mem:', overwrite=False, blocksize=None, ovr_blocksize=None, intermediate_compression=False, use_windowed_writes=False, tags=None, nodata=None, **extra_rio_opts)[source]

Write COG from externally computed overviews.

Generates in-memory image with multiple side-car overviews, then re-encodes to destination with copy overviews flag set.

Return type:

Union[Path, bytes, None]