gdal-raster-convert
Convert a raster dataset Added in version 3.11.
- Provided by: gdal-bin (Version: 3.12.2+dfsg-1build2)
- Source: gdal
- Report a bug
Convert a raster dataset Added in version 3.11.
Usage: gdal raster convert [OPTIONS] <INPUT> <OUTPUT>
Convert a raster dataset.
Positional arguments:
-i, --input <INPUT> Input raster datasets [required]
-o, --output <OUTPUT> Output raster 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)
Options:
-f, --of, --format, --output-format <OUTPUT-FORMAT> Output format ("GDALG" allowed)
--co, --creation-option <KEY>=<VALUE> Creation option [may be repeated]
--overwrite Whether overwriting existing output is allowed
Mutually exclusive with --append
--append Append as a subdataset to existing output
Mutually exclusive with --overwrite
Advanced Options:
--if, --input-format <INPUT-FORMAT> Input formats [may be repeated]
--oo, --open-option <KEY>=<VALUE> Open options [may be repeated]
gdal raster convert can be used to convert raster data between different formats.
The following options are available:
May be repeated.
The creation options available vary by format driver, and some simple formats have no creation options at all. A list of options supported for a format can be listed with the --formats command line option but the documentation for the format is the definitive source of information on driver creation options. See Raster drivers format specific documentation for legal creation options for each format.
May be repeated.
May be repeated.
$ gdal raster convert --format=COG --co COMPRESS=JPEG utm.tif utm_cog.tif
$ gdal raster convert utm.tif utm.gpkg
Even Rouault <even.rouault@spatialys.com>
1998-2026