Le samedi 13 juillet 2013 08:46:10, Andrea Peri a écrit :
> Hi,
> 
> I have a csv text file without any geometric field.
> 
> I need to convert it in a simple dbf file.
> 
> Is this possible to do with ogr2ogr ?

Yes

$ cat nogeom.csv
id,foo
1,bar

$ ogr2ogr nogeom.dbf nogeom.csv

$ ogrinfo nogeom.dbf -al
INFO: Open of `nogeom.dbf'
      using driver `ESRI Shapefile' successful.

Layer name: nogeom
Geometry: None
Feature Count: 1
Layer SRS WKT:
(unknown)
id: String (80.0)
foo: String (80.0)
OGRFeature(nogeom):0
  id (String) = 1
  foo (String) = bar



> 
> Thx

-- 
Geospatial professional services
http://even.rouault.free.fr/services.html
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to