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 Aug 30 at 22:16
  • A line geometry, or a symbol around a point? – DPSSpatial Aug 31 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 Aug 31 at 11:46

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.

  • It worked as a charm, thank you for the help! – CSouza Sep 3 at 12:42

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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