0

I have a series of points along a road that I want to use to separate plots. I have tried using the point to line tool to create a line from these points using QGIS. However, it creates a single line with no attributes to separate each segment.

Is there a way to create separate lines for each segment (each straight section would be its own line)?

I started with the points. This is the line that I created. I would like the line between each point to be separate from each other line.

1
  • Can you add a screenshot showing the attribute table?
    – BERA
    Nov 24, 2022 at 18:35

2 Answers 2

2

Use the QGIS PointsToPaths plugin (note the plural "paths"). It will create a separate line segment for each sequential pair of points. Additionally, each new line segment will contain the attributes from the two points that defined it. For details, see my answer at: Creating line layer from point layer with start and end attributes in QGIS

1

Using QGIS, you can use the Split Lines at Points tool. the tool is located under the Processing toolbox → SAGA → Feature - Lines → Split Lines at Points .

enter image description here

You need to use a small Epsilon value such as 0.001 to make sure the line will be split at each point

Before using the tool

enter image description here

After using the tool

enter image description here

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.