I need an export of xy-coordinates of line segments (Quantum GIS). I found an answer to a similar question here but that concerned only xy of the first and last vertex of a line segment. But I need the coordinates of all the vertexes. Can someone help?
Geometry Export To CSV part of the mmqgis plugin enables you to export the node coordinates into a csv file.
This page should give you some hints on how to use the plugin:
Have a look at the following related answered questions:
- How to export Polygons to CSV with coordinates?
- Getting list of coordinates for points in layer using QGIS?
If those don't work for you, please provide more details.
A Greek way: A) Select the feature you want, copy it and paste onto a word processor. B) delete the first part
wkt_geom… and the parenthesis at the end so there are only numbers. C) Replace:
, (comma and one space) with
^p (MS word) or
\n (Libre office-Open office) D) replace one space with comma. You get the list of coordinates in the X,Y format.
Use extract nodes. From line to points => saved in shape file. Then save the point shape file in save as vector layer window as csv. In the layer option, change the following : create csvt = yes, geometry = as xy, separator = comma. Check the extent (current layer). Supply the file name, then click OK.
There's a tool in the open source GIS Whitebox Geospatial Analysis Tools (http://www.uoguelph.ca/~hydrogeo/Whitebox/) called 'Extract Nodes'. It does exactly what you are looking for. It takes a shapefile of polylines or polygons and returns a vector of the node points.