GDAL ogr2ogr

gdal.org ↗

Command-line vector-data conversion and transformation

SI Score
80/100
Pricing
Open Source AI reading, not confirmed
Free plan
Not confirmed
Sign-up required
Not confirmed

Ask SI about GDAL ogr2ogr

Answers use saved listing facts and recorded sources.

What it does

ogr2ogr is GDAL's vector-data conversion command. It supports output-format selection, layer and field filtering, coordinate transformations, and geometry processing.

Select only the needed fields or features while converting a dataset, instead of exporting everything and cleaning it later. Coordinate-system assignment and transformation are different operations in the command syntax. Its overwrite, append, and update options also have different effects on the destination, so choose them explicitly in a repeatable workflow.

-overwrite deletes and recreates the destination layer; -append adds features to an existing layer and also enables update mode. Merely opening a dataset with -update is a different choice. Field selection cannot be combined with append in the same way, so use the documented mapping or SQL alternatives for that case. A format driver may also need explicit geometry-export options, as the CSV example illustrates.

Strengths

  • Combines vector conversion with selection and coordinate operations.

Best for

  • Scripted GIS vector-format transformations

Sources