OS Manuals

/usr/bin/ogr2ogr

gdal-3.8 tools for Python 3.12

From gdal-3.8-tools-py3.12 3.8.5-r21 (enterprise-packages), captured 2026-11-08 by running ogr2ogr --help (exit 1). permalink

Usage: ogr2ogr [--help] [--help-general]
               [-skipfailures] [-append | -upsert] [-update]
               [-select <field_list>] [-where <restricted_where>|@<filename>]
               [-progress] [-sql <sql statement>|@<filename>] [-dialect <dialect>]
               [-preserve_fid] [-fid <FID>] [-limit <nb_features>]
               [-spat <xmin> <ymin> <xmax> <ymax>] [-spat_srs <srs_def>] [-geomfield <field>]
               [-a_srs <srs_def>] [-t_srs <srs_def>] [-s_srs <srs_def>] [-ct <string>]
               [-if <input_drv_name>] [-f <output_drv_name>] [-overwrite] [-dsco <NAME>=<VALUE>]...
               [-lco <NAME>=<VALUE>]... [-nln <name>]
               [-nlt <type>|PROMOTE_TO_MULTI|CONVERT_TO_LINEAR|CONVERT_TO_CURVE]
               [-dim XY|XYZ|XYM|XYZM|<layer_dim>]
               <dst_datasource_name> <src_datasource_name>
               [<layer> [<layer>...]]

Advanced options :
               [-gt n] [-ds_transaction]
               [-oo <NAME>=<VALUE>]... [-doo <NAME>=<VALUE>]...
               [-clipsrc {[<xmin> <ymin> <xmax> <ymax>]|<WKT>|<datasource>|spat_extent}]
               [-clipsrcsql <sql_statement>] [-clipsrclayer <layer>]
               [-clipsrcwhere <expression>]
               [-clipdst {[<xmin> <ymin> <xmax> <ymax>]|<WKT>|<datasource>}]
               [-clipdstsql <sql_statement>] [-clipdstlayer <layer>]
               [-clipdstwhere <expression>]
               [-wrapdateline][-datelineoffset <val>]
               [[-simplify <tolerance>] | [-segmentize <max_dist>]]
               [-makevalid]
               [-addfields] [-unsetFid] [-emptyStrAsNull]
               [-relaxedFieldNameMatch] [-forceNullable] [-unsetDefault]
               [-fieldTypeToString {All|{<type1>[,<type2>]}...}] [-unsetFieldWidth]
               [-mapFieldType {<srctype>|All=<dsttype>[,<srctype2>=<dsttype2>]...}]
               [-dateTimeTo {UTC|UTC(+|-)<HH>|UTC(+|-)<HH>:<MM>}]
               [-fieldmap {identity|{<index1>[,<index2>]...}]
               [-splitlistfields] [-maxsubfields <val>]
               [-resolveDomains]
               [-explodecollections] [-zfield <field_name>]
               [-gcp <ungeoref_x> <ungeoref_y> <georef_x> <georef_y> [<elevation>]]... [[-order <n>]|[-tps]]
               [-s_coord_epoch <epoch>] [-t_coord_epoch <epoch>] [-a_coord_epoch <epoch>]
               [-nomd] [-mo <META-TAG>=<VALUE>]... [-noNativeData]

Note: ogr2ogr --long-usage for full help.

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.