1

How can I get the (x,y) coordinates of the vertices of a polyline in QGIS?

I do not find the function in the field-calculator

I can find the coordinates for each point, but I am not able to highlight it only for the first and the last point for each polyline. I would like to link those value for each polyline

Vince
  • 20,017
  • 15
  • 45
  • 64
Ale
  • 1,313
  • 4
  • 26
  • 48

1 Answers1

2

The solution is to use for all the items the function:

  • $y_at (0) and $x_at (0) (coordinates of the first point of the polyline)
  • $y_at (-1) and $x_at (-1) (coordinates of the last point of the polyline)
Ale
  • 1,313
  • 4
  • 26
  • 48