2

I need an export of xy-coordinates of line segments in QGIS. 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?

Taras
35.8k5 gold badges77 silver badges152 bronze badges
asked Sep 27, 2013 at 8:03

7 Answers 7

1

The 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:

http://michaelminn.com/linux/mmqgis/

answered Sep 27, 2013 at 9:11
1

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.

answered Apr 9, 2018 at 12:05
1

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.

Taras
35.8k5 gold badges77 silver badges152 bronze badges
answered Nov 28, 2017 at 14:12
1

Have a look at the following related answered questions:

If those don't work for you, please provide more details.

Taras
35.8k5 gold badges77 silver badges152 bronze badges
answered Sep 27, 2013 at 14:03
0

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.

enter image description here

answered Sep 27, 2013 at 13:39
0
0
  1. Use the Extract vertices function to create a point shapefile of the vertices. The properties of the line (such as ID) will be retained for later reference
  2. Add the xy geometry properties in any number of ways, perhaps with the Attribute Table field calculator to add attributes named xx and yy with $x and $y in the calculation, or simply the Add X/Y fields to layer function, or other means.
  3. Export the points layer as a CSV format (if needed, or whatever format you want).
answered Sep 22, 2020 at 20:07
0

In fact we do not need any plugin or special function to extract vertices from linestrings or polygons. Simply create a memory point layer (see link), copy your selected features to this layer and open the attribute table to copy the vertices to the clipboard. BTW you can always set the point layer to a different CRS if you like, coordinates are transformed automatically. For more see: Programmatically extract edge points from many polygons?

answered Sep 23, 2020 at 7:54

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.