[gdal-dev] ogr2ogr conversion

Even Rouault even.rouault at mines-paris.org
Wed Feb 29 03:57:07 EST 2012

Selon Dirk Vermeer <dirk at labela.nl>:

> 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?

See the SEPARATOR layer creation option documented in
http://gdal.org/ogr/drv_csv.html .

For example : ogr2ogr -f CSV dest.csv src.shp -lco SEPARATOR=SEMICOLON

> Thank you
> Dirk
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

More information about the gdal-dev mailing list