Bug report #12796
Export Spatialite point layer to CSV fails on Geometry AS_XY
|Affected QGIS version:||2.8.2||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||duplicate|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||20892|
When exporting a Spatialite point layer via "Save as...", geometry is only exported when selecting "AS_WKT". When selecting AS_XY or AS_YX, only the attribute values are exported (see attached files).
When exporting from a Shapefile, the geometry is written correctly with the option AS_XY.
#6 Updated by Jürgen Fischer over 6 years ago
- Status changed from Feedback to Closed
- Resolution set to duplicate
Jochen Huber wrote:
Yes, it is MULTIPOINT. Tested with POINT, and it works okay.
So I guess it's another problem. AS_XY doesn't work for MULTIPOINT. Question is how the multipoint layer was created - maybe related to the two related tickets.
#8 Updated by Jochen Huber over 6 years ago
Yes, QSpatialite seems to always (often unnecessarily) generate MULTIPOINT feature sets when importing from QGIS layers.
An error message would be helpful in any case (e.g. "Option AS_XY not supported for MULTIPOINT datasets").
I even think it would be possible to export MULTIPOINT data with AS_XY:
Write one line for every POINT, using the same attributes for every MULTIPOINT part
Add a column "MULTIPART ID" with distinct values für distinct features and shared values for all parts of a MULTIPOINT.
#9 Updated by Saber Razmjooei over 6 years ago
You can always log another ticket as a feature request.