Skip to main content
Returns a Cloud Optimized GeoTiff (COG) binary from a raster. COG is a GeoTiff file format optimized for efficient cloud-based access, with internal tiling and overviews that enable partial reads over HTTP range requests.

Signatures

Parameters

Raster
required
The input raster.
String
The compression type. Possible values: None, Deflate, LZW, JPEG, PackBits, Huffman.
Int
default:"256"
The width and height of the internal tiles in the COG file.
Double
The compression quality. A decimal number between 0 and 1, where 0 means lowest quality and 1 means highest quality. Only applicable to JPEG compression; ignored for lossless codecs.
String
The resampling method used for overview generation. Possible values: NearestNeighbor, Bilinear, Bicubic.
Int
The number of overview levels to generate.

Return type

The raster in Cloud Optimized GeoTiff binary format.

Examples