[gdal-dev] ogr2ogr conversion

Paolo Corti pcorti at gmail.com
Wed Feb 29 03:57:32 EST 2012


On Wed, Feb 29, 2012 at 9:54 AM, Dirk Vermeer <dirk at labela.nl> wrote:
> Not sure if this is the right way to ask a question...
> I am wondering if there is an option in ogr2ogr to use a custom delimiter in the conversion of shapefiles to csv with ogr2ogr. The csv outfile has a comma as the default delimiter, but what I need is a semicolon as delimiter.
> Is this possible or do I have to write my own script to do this?

did you check out the SEPARATOR option [1]?
SEPARATOR=COMMA/SEMICOLON/TAB (Starting with GDAL 1.7.0): Field
separator character. Default value : COMMA

[1] http://www.gdal.org/ogr/drv_csv.html

-- 
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti


More information about the gdal-dev mailing list