0

I have a polyline which consists of just one geometry. I have points which are evenly spaced (25m). How would I add these point vertices to the line so that the points will create one line segment/polyline per point vertex?

This is so that I can have an attribute for the polyline each 25m so I can use it for labeling.

I am using QGIS. enter image description here
enter image description here

  • 1
    Wondering how you got this points? Using "Split with lines" (in "Vector Overlay" section in the "Processing Toolbox") you can generate a new layer resulting from splitting your line in multiples segments of each 25 meters without going through your method with points. PS: I don't know you intend, so not sure it can be a "right" answer. Alternative could be using solution from gis.stackexchange.com/a/311374/638 – ThomasG77 Feb 5 at 21:49
  • Sorry for the wrong picture. I used qchainage to get the interval and it outputs point. The tool you suggested only works if I have a nother polyline layer to split it with. – Linkinpark Feb 6 at 6:44
  • I will look in the links you guys provided. I just added a picture to clarify (not good with all the terms yet). The yellow line is the original and is one segment. I want the segment to be split just between the points so I don't get a segment where the x mark is (where it is turning). – Linkinpark Feb 6 at 7:40
  • Combined processing from my first comment and use the recipe from gis.stackexchange.com/a/331496/638 to generate lines with only start and end points – ThomasG77 Feb 6 at 9:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.