[Gdal-dev] Limited type support in OGR CSV driver

Sebastien Grignard sebastien.grignard at archivideo.com
Fri Jun 17 04:40:08 EDT 2005


Hello.
I've added type support for the CSV driver.
With these patches you can now write a little csv help file to indicate 
the columns types to OGR.
It works as follow :
  - suppose you have a foobar.csv file that looks like this :
    "ID","X","Y","AREA","NAME"
    "1","1023.5","243.56","675","FOOBAR"
    ...
  - now write a foobar.csvt file like this one :
    "Integer","Real","Real","Integer","String"
The driver will then use the types you specified for the csv columns.
The only types recognized are Integer,Real and String.

Cheers.

-- 
Sebastien Grignard
R&D Developer
Archivideo
40, rue des Veyettes - 35000 Rennes FRANCE
Phone: +033 2 99 86 30 20

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ogrcsvpatch.zip
Type: application/zip
Size: 2040 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20050617/8bf63263/ogrcsvpatch.zip


More information about the Gdal-dev mailing list