Skip to content

Commit

Permalink
Doc: ogr2ogr: make it clear that -append automatically enables -update
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Dec 12, 2022
1 parent ea7878b commit 4804567
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/source/programs/ogr2ogr.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ output coordinate system or even reprojecting the features during translation.

.. option:: -append

Append to existing layer instead of creating new
Append to existing layer instead of creating new. This option also enables
:option:`-update`.

.. option:: -upsert

Expand Down Expand Up @@ -553,11 +554,11 @@ Change the coordinate reference system from ``EPSG:4326`` to ``EPSG:3857``:
-f GPKG output.gpkg \
input.gpkg
Example appending to an existing layer (both ``-update`` and ``-append`` flags need to be used):
Example appending to an existing layer:

.. code-block::
ogr2ogr -update -append -f PostgreSQL PG:dbname=warmerda abc.tab
ogr2ogr -append -f PostgreSQL PG:dbname=warmerda abc.tab
Clip input layer with a bounding box (<xmin> <ymin> <xmax> <ymax>):

Expand Down

0 comments on commit 4804567

Please sign in to comment.