terracotta optimize-rasters

Optimize a collection of raster files for use with Terracotta.

First argument is a list of input files or glob patterns.

Example:

$ terracotta optimize-rasters rasters/*.tif -o cloud-optimized/

Note that all rasters may only contain a single band.

terracotta optimize-rasters [OPTIONS] RASTER_FILES...

Options

-o, --output-folder <output_folder>

Output folder for cloud-optimized rasters. Subdirectories will be flattened. [required]

--overwrite

Force overwrite of existing files

--resampling-method <resampling_method>

Resampling method for overviews [default: average]

Options

average|nearest|bilinear|cubic

--reproject

Reproject raster file to Web Mercator for faster access [default: False]

--in-memory, --no-in-memory

Force processing raster in memory / not in memory [default: process in memory if smaller than 120 million pixels]

--compression <compression>

Compression algorithm to use [default: auto (ZSTD if available, DEFLATE otherwise)]

Options

auto|deflate|lzw|zstd|none

-q, --quiet

Suppress all output to stdout [default: False]

Arguments

RASTER_FILES

Required argument(s)