Bug report #7507

'Save as ' can't export attribute tables in an editable format

Added by Regis Haubourg over 11 years ago. Updated over 11 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:-
Category:-
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:16457

Description

Hi,
I couldn't export a attribute table from Oracle or postgres in an editable format with "save as " action.
Error message is raised with shp and sqlite V:/temp/com_pat.sqlite is not a valid or recognized data source.
Tab export does it right, but it's not editable.

This is a blocking issue IMHO, not being able to export correctly datas.

Associated revisions

Revision 4265f9fe
Added by Jürgen Fischer over 11 years ago

vector file writer: add support for DBF files (fixes #7507)

History

#1 Updated by Jürgen Fischer over 11 years ago

  • Status changed from Open to Feedback

not reproducable here - anything special about the table you want to save?

#2 Updated by Nathan Woodrow over 11 years ago

regis can we get a update on this from your side. I can't reproduce here.

#3 Updated by Regis Haubourg over 11 years ago

Sorry guys, I'm lost in mountains here, with no internet access. If save as sqlite does work now, and if dbf is an available output format, you could push bug status to lower than blocker. sorry for not being responsive.
Régis

#4 Updated by Giovanni Manghi over 11 years ago

regis Haubourg wrote:

Sorry guys, I'm lost in mountains here, with no internet access. If save as sqlite does work now, and if dbf is an available output format, you could push bug status to lower than blocker. sorry for not being responsive.

Saving as SQlite now seems to export also the geometries, and the result is the same as exporting as Spatialite. Is this on purpose? There is no "save as..." dbf, so maybe this ticket can become a feature request?

#5 Updated by Jürgen Fischer over 11 years ago

Giovanni Manghi wrote:

Saving as SQlite now seems to export also the geometries, and the result is the same as exporting as Spatialite. Is this on purpose? There is no "save as..." dbf, so maybe this ticket can become a feature request?

"Save as..." is based on OGR. The SpatiaLite entry is just SQLite with SPATIALITE=YES as data source creation option.

If you want to export to .dbf use ESRI Shapefile with SHPT=NULL as layer creation option.

#6 Updated by Giovanni Manghi over 11 years ago

"Save as..." is based on OGR. The SpatiaLite entry is just SQLite with SPATIALITE=YES as data source creation option.

my doubt is the other way: seems that saving as sqlite saves always as spatialite

If you want to export to .dbf use ESRI Shapefile with SHPT=NULL as layer creation option.

ok, nice to know.

Then I think that this ticket could be closed, agree?

#7 Updated by Jürgen Fischer over 11 years ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF