1

I have a shapefile with 64 lines with the metadata:

General:
Storage type of this layer: ESRI Shapefile
Source for this layer: C:/Users/toke.nielsen/Desktop/lines.shp
Geometry type of the features in this layer: Line
The number of features in this layer: 64
Editing capabilities of this layer: Add Features, Delete Features, Change Attribute Values, Add Attributes, Delete Attributes, Create Spatial Index, Fast Access to Features at ID, Change Geometries
Extents:
In layer spatial reference system units : xMin,yMin 563677.42,6223900.13 : xMax,yMax 568136.66,6227899.44
Layer Spatial Reference System:
+proj=utm +zone=32 +datum=WGS84 +units=m +no_defs

How do I export the coordinates from these lines to a .csv file? I have tried to write GEOMETRY=AS_XY in the layer options when creating the .csv and I have tried the vector->geometry tools->export/add geometry columns, but then I only get the length of each line.

BradHards
  • 12,881
  • 2
  • 37
  • 70
Toke
  • 155
  • 1
  • 10
  • 1
    I have figured it out. I used GEOMETRY=AS_WKT in the layer option when saving to csv. – Toke Apr 04 '14 at 05:43
  • The mmqgis plugin lets you easily extract the node coordinates of a line or polygon. – AndreJ Apr 04 '14 at 06:24
  • @Toke, it'd be great if you went ahead and created a full answer below showing all the steps and results (then 'accept' it if no-one answers with something better). – Simbamangu Apr 04 '14 at 11:48

0 Answers0