Bug report #10009

Shp save as CSV is empty

Added by Barbara Weidenhoefer over 10 years ago. Updated over 10 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:-
Affected QGIS version:2.2.0 Regression?:No
Operating System:Win7 Easy fix?:No
Pull Request or Patch supplied:No Resolution:invalid
Crashes QGIS or corrupts data:No Copied to github as #:18497

Description

using qgis 2.2.0 on a windows 7 notebook

OBSERVED: "save as..." CSV generates an empty csv file.
csv file only contains the column header.

EXPECTED: "save as..." genereates a csv file with lat lon coordinates.

Note:
- using a kml or shp file for export (kml attached)
- save as csv works in previous version (2.0.1)

Singapur.kml (3.54 KB) Barbara Weidenhoefer, 2014-04-07 07:32 AM

export.png - Settings (38.1 KB) Antonio Locandro, 2014-04-08 06:42 PM

singapur.csv Magnifier - Singapur.kml Save As CSV (30 Bytes) Antonio Locandro, 2014-04-08 06:42 PM

History

#1 Updated by Giovanni Manghi over 10 years ago

  • Status changed from Open to Feedback

cannot confirm here on Linux and Windows.

#2 Updated by Antonio Locandro over 10 years ago

I think something is happening, I tried it myself and I can get points to work but not lines and polygons no matter what settings I change

#3 Updated by Giovanni Manghi over 10 years ago

  • Resolution set to invalid
  • Status changed from Feedback to Closed

The tools works fine.

If the input file is a point layer, then there are no difficulties.

If the input file is a line or polygon layer then the geometry needs to be exported as WKT: in QGIS 2.2 there is this option.

It has no sense exporting a line/polygon geometry as "X/Y".

When the user choosen not to export the geometry then only the attributes are exported, and this is what happens also with the provided kml.

Also available in: Atom PDF