I have a points layer in QGIS defined by a csv file in the following format:
group,name,lat,long 1,A,…,… 1,B,…,… 1,C,…,… 2,A,…,… 2,D,…,… 3,E,…,… 3,F,…,…
(lat and long are coordinates in WGS84)
How can I draw all of the possible lines between all of the points that are in the same group? So the above data would yield a triangle with vertices at A, B and C, a line with end points A and D, and another line with end points E and F.
I have tried a number of solutions suggested on these boards (PointsToPaths plugin, Points2One plugin, Connect Points plugin, GRASS v.to.lines, SAGA Convert lines to points) but all of these only draw the minimum number of lines to connect the points. This works fine when only two points need to be connected, but fails when there are more than two points. In the example above, group 1 comes out as a line from A to B to C, without the direct line from A to C. Sometimes there are up to eight points in the group, which should yield 28 lines.