Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1.07 KB

ogr2ogr.md

File metadata and controls

32 lines (20 loc) · 1.07 KB

ogr2ogr from GDAL

Description

ogr2ogr from GDAL is used to convert input data to UTF-8 encoded CSV with WKT geometries.

Version 2.3.0 or more is required as it allows uniform charset handling for input data.

Tested versions

  • 2.4.2

Notes

  • Between GDAL 1.x and 2.x, GDAL introduce a regression in WKT precision management while converting to CSV (OGR_WKT_PRECISION is a global precision, not a number of decimals). Meanwhile, coordinate accuracy is better with GDAL 2.x.
  • Between GDAL 2.2 and 2.3, GDAL introduce a regression while converting LATIN1 TAB to CSV. Since GDAL 2.3.0, output CSV is UTF-8 encoded according to charset declaration in TAB files.

Setup

# for newer versions :
# sudo apt-add-repository ppa:ubuntugis/ppa
sudo apt-get update
sudo apt-get install gdal-bin
ogr2ogr --version