Re: [Qgis-developer] Saving to a DBF

2013-02-11 Thread Bob and Deb
It might be more then you asked for, but how about Spatialite as an intermediate format? On Mon, Feb 11, 2013 at 12:26 PM, Régis Haubourg < regis.haubo...@eau-adour-garonne.fr> wrote: > Hi, csv huge drawback is that it can't deal with fields with carriage > return > inside.. I agree, dbf is the

Re: [Qgis-developer] Saving to a DBF

2013-02-11 Thread Giuseppe Sucameli
Save the table like you do for shapefiles (I suppose Sextante uses the QgsVectorFileWriter class with "ESRI Shapefile" as driver) but pass NoGeometry as geometry type (or maybe the wkbType for NoGeometry). It should create the DBF without the associated SHP. Cheers. Giuseppe

Re: [Qgis-developer] Saving to a DBF

2013-02-11 Thread Régis Haubourg
Hi, csv huge drawback is that it can't deal with fields with carriage return inside.. I agree, dbf is the only, but very old, database typed file format, with indexes support. sqlite is a great alternative, but it is not a import - export format known in spreadsheet or other desktop tool dealing w

Re: [Qgis-developer] Saving to a DBF

2013-02-11 Thread Victor Olaya
Piotr thanks for the suggestion. The reason why I want to save to dbf is mainly because that is what SAGA uses for tables, so if the input is not a shapefile, it has to be exported to it before passing to SAGA from SEXTANTE (currentyl, it won't work with tables in a different format) CSV is much

Re: [Qgis-developer] Saving to a DBF

2013-02-11 Thread p0cisk
Hi Victor,Why not to save attributes to CSV format? I think it's more portable format. If you want to save also field types you can use .csvt file.RegardsPiotr -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Saving-to-a-DBF-tp5033519

[Qgis-developer] Saving to a DBF

2013-02-11 Thread Victor Olaya
Hi all I have been trying to find out how to programatically save the attributes table of a vector layer to a dbf from QGIS, since this is likely the best option for an intermediate format between SEXTANTE and external applications. Anyone can give me a hint about it? It should be possible, since