I have a series of Output Area centroids and I want to create a matrix of lines between each point (every point connected to every point), which is effectively what the distance matrix tool does (I think). But I also need the line geometry for visualisation purposes. Can anyone tell me how to do this?
QGIS Distance Matrix – Generate Line Geometry Output
distance matrixlineqgisqgis-plugins
Best Answer
As you have
Distance matrix
output, use itsInputID
andTargetID
fields to build connecting lines.Just open the
Layer properties | Symbology
and selectGeometry generator
.If your original point layer name is
points
and it hasid
field (the one you used to create the Distance matrix), the expression would be:It will give you these connecting lines: