gdal driver cog validate

Added in version 3.13.

Validate if a TIFF file is a Cloud Optimized GeoTIFF

Synopsis

Usage: gdal driver cog validate [OPTIONS] <DATASET>

Validate if a TIFF file is a Cloud Optimized GeoTIFF

Positional arguments:
  --input, --dataset <DATASET>  COG dataset [required]

Common Options:
  -h, --help                    Display help message and exit
  --json-usage                  Display usage as JSON document and exit
  --config <KEY>=<VALUE>        Configuration option [may be repeated]
  -q, --quiet                   Quiet mode (no progress bar or warning message) [not available in pipelines]

Options:
  --full-check <FULL-CHECK>     Whether to perform full check. FULL-CHECK=auto|yes|no (default: auto)

Description

Validate if a TIFF file is a Cloud Optimized GeoTIFF and emits a report.

Note

This program requires the GDAL Python bindings to be available.

Program-Specific Options

--full-check auto|yes|no

Whether extensive checks, verifying leading and trailer bytes of strips or tiles, must be performed. In auto mode (the default), they are performed for local file, but not for remote files

Standard Options

Details
-q, --quiet

Suppress progress bar and some warning messages.

Return status code

The program returns status code 0 in case of success, and non-zero in case of error (non-blocking errors emitted as warnings are considered as a successful execution).

Examples

Example 1

Check if a remote file is a valid COG file.

gdal driver cog validate /vsicurl/https://example.com/some.tif