.\" 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-VECTOR-UPDATE" "1" "May 08, 2026" "" "GDAL" .SH NAME gdal-vector-update \- Update an existing vector dataset with an input vector dataset .sp Added in version 3.13. .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .EX Usage: gdal vector update [OPTIONS] Update an existing vector dataset with an input vector dataset. Positional arguments: \-i, \-\-input Input vector datasets [required] [not available in pipelines] \-o, \-\-output Output vector dataset [required] Common Options: \-h, \-\-help Display help message and exit \-\-json\-usage Display usage as JSON document and exit \-\-config = Configuration option [may be repeated] \-q, \-\-quiet Quiet mode (no progress bar or warning message) [not available in pipelines] Options: \-\-input\-layer Input layer name \-\-output\-layer Output layer name \-\-mode Set update mode. MODE=merge|update\-only|append\-only (default: merge) \-\-key Field(s) used as a key to identify features [may be repeated] Advanced Options: \-\-if, \-\-input\-format Input formats [may be repeated] [not available in pipelines] \-\-oo, \-\-open\-option = Open options [may be repeated] [not available in pipelines] \-\-output\-oo, \-\-output\-open\-option = Output open options [may be repeated] .EE .UNINDENT .UNINDENT .SH DESCRIPTION .sp \fBgdal vector update\fP can be used to update the features of an existing output vector dataset with the features of the input vector. It identifies matching features between input and output based on their feature ID by default, or based on the value of one or several columns forming a key, when using \fI\%\-\-key\fP\&. .sp With the default \fBmerge\fP mode, features found in both layers will be updated, and features only existing in the input layer will be created in the output layer. .sp The schemas of the input and output layers do not need to be identical (except on columns specified by \fI\%\-\-key\fP), but they should use the same CRS for geometry columns, as no on\-the\-fly reprojection is done. If a column exists in the input layer but not in the output layer, it will not be created. And if a column exists in the output layer and not in the input layer, its content will not be updated. .sp \fBgdal vector update\fP can be used as a step of a pipeline, with the input dataset being the output of the previous step. .SH PROGRAM-SPECIFIC OPTIONS .INDENT 0.0 .TP .B \-\-input\-layer Input layer name. Must be specified if the input dataset has several layers. .UNINDENT .INDENT 0.0 .TP .B \-\-key Field(s) used as a key to identify features. For multiple fields, specify \fI\%\-\-key\fP multiple times. .UNINDENT .INDENT 0.0 .TP .B \-\-mode merge|update\-only|append\-only Defines how updates are done. Default is \fBmerge\fP\&. .sp When using the default \fBmerge\fP mode, features found in both layers will be updated, and features only existing in the input layer will be created in the output layer. .sp When using the \fBupdate\-only\fP mode, features found in both layers will be updated, and features only found in the input layer will be ignored. .sp When using the \fBappend\-only\fP mode, features found in both layers will \fInot\fP be updated, and features only found in the input layer will be created in the output layer. .UNINDENT .INDENT 0.0 .TP .B \-\-output\-layer Output layer name. Must be specified if the output dataset has several layers. .UNINDENT .SH STANDARD OPTIONS .INDENT 0.0 .TP .B \-\-if, \-\-input\-format Format/driver name to be attempted to open the input file(s). It is generally not necessary to specify it, but it can be used to skip automatic driver detection, when it fails to select the appropriate driver. This option can be repeated several times to specify several candidate drivers. Note that it does not force those drivers to open the dataset. In particular, some drivers have requirements on file extensions. .sp May be repeated. .UNINDENT .INDENT 0.0 .TP .B \-\-oo, \-\-open\-option = Dataset open option (format specific). .sp May be repeated. .UNINDENT .INDENT 0.0 .TP .B \-\-output\-open\-option, \-\-output\-oo = Added in version 3.12. .sp Dataset open option for output dataset (format specific). .sp May be repeated. .UNINDENT .SH RETURN STATUS CODE .sp 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). .SH EXAMPLES .SS Example 1: Update existing out.gpkg with content of in.gpkg, using identifier as the key. .INDENT 0.0 .INDENT 3.5 .sp .EX $ gdal vector update \-\-key identifier in.gpkg out.gpkg .EE .UNINDENT .UNINDENT .SH AUTHOR Even Rouault .SH COPYRIGHT 1998-2026 .\" Generated by docutils manpage writer. .