2

Back in late 2017, I made considerable use of the Points to Paths tool. I forget which QGIS version I was using, but it was most likely 2.x, probably 2.14.

According to my memory and notes from the time, the tool had a checkbox option titled "Lines per Vertex". However, I don't see that option as of 2.18. or 3.8.2.

However, the according to the tool's github page, no changes have been made to the tool in the last 4 years.

The checkbox option was very useful for connecting points as their values changed in sequence, and I'd like to take advantage of its function again.

Accordingly, I'm confused. I know for sure that I used that checkbox, but there's no evidence that it existed. Am I dreaming???

  • Maybe the plugin was not updated to work in v3 of QGIS? QGIS v2x used python 2x and QGIS v3 uses python v3. – artwork21 Sep 6 '19 at 18:29
  • I just tried it in 2.18 and the checkbox is missing there. I'll update my OP. – Stu Smith Sep 6 '19 at 19:13
0

The reason for my OP confusion is that it turns out that there are two similarly-named tools with different capabilities. I'll try to explain their differences here.

The plugin tool that I was searching for in my OP is:

Points to Paths (note the plural "Paths")

This tool is available at 2.x, but has not yet been updated to 3.x Here's a screenshot (note the highlighted Line per Vertex checkbox):

enter image description here

3.8.2 (and I assume all 3.x to date) contains a similarly-named (but functionally limited) tool which does not appear to have been available at 2.x:

Points to Path (note the singular "Path")

Here's its screenshot:

enter image description here

To recap, the 2.x tool is Points to Paths, while the 3.x tool is Points to Path.

Note that the Points to Path tool does not contain the Line per Vertex checkbox. This seemingly insignificant difference is crucial. When checked on, Points to Paths will always create a line segment "downstream" from each point. Furthermore, each line segment will contain the unique value from its associated point's Point Order Field, which allows you to subsequently join each line segment to its associated point, which in turn allows you to transfer any other tabular values from point to line.

In contrast, Points to Path will only create a single line for each Group Field. None of the intermediate line segments between points will be created. Additionally, without those intermediate line segments (and their associated id values), no joins back to the point layer are possible.

With its Line per Vertex checkbox off, Points to Paths and Points to Path are equivalent.

In summary, Points to Paths is the more versatile and useful tool. I look forward to it's inclusion at 3.x

| improve this answer | |

Your Answer

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

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