My question pretty much sums up my problem. Basically, I have a layer containing points:

enter image description here

And I need to convert them into lines with fixed size (25 meters). I don't care if the point will be taken as starting point or middle point of this line, and I don't care about the direction of each line. By the end I would like to have something like this:

enter image description here

Do you guys know how should I proceed?

  • Welcome to GIS SE, please take the tour to have a clear understanding on asking questions and to get quick answers.
    – Shiko
    Commented Aug 30, 2018 at 22:16
  • A line geometry, or a symbol around a point? Commented Aug 31, 2018 at 3:54
  • I need a line geometry. I've tried buffering and it would work if I needed polygons, but as I said, I need a line with 25 meters.
    – CSouza
    Commented Aug 31, 2018 at 11:46

1 Answer 1


As you have tagged QGIS3.2, you could try Geometry by Expression tool (in the Processing Toolbox | Vector geometry).

One simplistic example would be a 25m-line extending to NE from each point:

 make_line($geometry, translate($geometry, 25* cos(radians(45)), 25* sin(radians(45)))) 

You can easily understand the endpoint of the line is defined by translate($geometry, x, y)

enter image description here

FWIW, we can change the azimuth (currently 45 degrees) to other values or attribute field if needed.


Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.