.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "GDAL-RASTER-WRITE" "1" "May 08, 2026" "" "GDAL" .SH NAME gdal-raster-write \- Write a raster dataset (pipeline only) .sp Added in version 3.11. .SH DESCRIPTION .sp The \fBwrite\fP operation is for use in a \fI\%gdal pipeline\fP only, and writes a raster dataset. This is the last step of a pipeline. .sp To write a temporary dataset in the middle of a pipeline, use \fI\%gdal raster materialize\fP\&. .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .EX * write [OPTIONS] \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Write a raster dataset. Positional arguments: \-o, \-\-output Output raster dataset [required] Options: \-f, \-\-of, \-\-format, \-\-output\-format Output format (\(dqGDALG\(dq allowed) \-\-co, \-\-creation\-option = Creation option [may be repeated] \-\-overwrite Whether overwriting existing output dataset is allowed Mutually exclusive with \-\-append \-\-append Append as a subdataset to existing output Mutually exclusive with \-\-overwrite .EE .UNINDENT .UNINDENT .SH STANDARD OPTIONS .INDENT 0.0 .TP .B \-f, \-\-of, \-\-format, \-\-output\-format Which output raster format to use. Allowed values may be given by \fBgdal \-\-formats | grep raster | grep rw | sort\fP .UNINDENT .INDENT 0.0 .TP .B \-\-co, \-\-creation\-option = Many formats have one or more optional creation options that can be used to control particulars about the file created. For instance, the GeoTIFF driver supports creation options to control compression, and whether the file should be tiled. .sp May be repeated. .sp 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 \fI\%\-\-formats\fP command line option but the documentation for the format is the definitive source of information on driver creation options. See \fI\%Raster drivers\fP format specific documentation for legal creation options for each format. .UNINDENT .INDENT 0.0 .TP .B \-\-overwrite Allow program to overwrite existing target file or dataset. Otherwise, by default, \fBgdal\fP errors out if the target file or dataset already exists. .UNINDENT .INDENT 0.0 .TP .B \-\-append Append input raster as a new subdataset to an existing output file. Only works with drivers that support adding subdatasets such as \fI\%GTiff \-\- GeoTIFF File Format\fP and \fI\%GPKG \-\- GeoPackage raster\fP This also creates the output dataset if it does not exist yet. .UNINDENT .SH EXAMPLES .SS Example 1: Write a GeoTIFF file .INDENT 0.0 .INDENT 3.5 .sp .EX $ gdal raster pipeline ... [other commands here] ... ! write out.tif \-\-overwrite .EE .UNINDENT .UNINDENT .SH AUTHOR Even Rouault .SH COPYRIGHT 1998-2026 .\" Generated by docutils manpage writer. .