Bug report #9597
2.1.0 revision c9a88c1 fails to export spatial information from polyline shape layer to csv
|Affected QGIS version:||2.0.1||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||18175|
Into the Layer options in the CSV "save..as" dialog in the last stable release (2.0.1 Dufour) results in an expected csv of polyline information. However, attempting to do the same in 2.1.0 only produces a csv of the attribute information without any of the spatial WKT fields.
Also note: under the "More Options >> Layer Options" section of the "Save Vector Layer" dialog there is a drop-down menu for GEOMETRY. The mouse-over help text states "It is possible to export the geometry in its WKT definition by specifying GEOMETRY=AS_WKT". However, there is no GEOMETRY=AS_WKT option in the drop down menu.
#1 Updated by S Mentzer about 6 years ago
Looks like lines 585 and 598 should be swapped in https://github.com/qgis/QGIS/blob/master/src/core/qgsvectorfilewriter.cpp