MARKDOWN 7
QGIS - Symbology - Connect All Points By Lines By mike on 30th November 2021 01:10:43 AM

QGIS - Symbology - Connect All Points By Lines

:Source: https://gis.stackexchange.com/questions/366235/creating-all-possible-line-segments-between-all-points-using-qgis

You can achieve your goal using the 'Field Calculator'. Using the 'Geometry Generator', with 'Linestring'-geometry type, use this expression It will create an array of lines that connect any point with all the others point on the same layer. You can create a new layer using the same expression in the 'Processing tool Vector Geometry > Geometry by expression'


collect_geometries(
    array_foreach(
        array_agg($geometry)
,make_line($geometry,@element))
)

Hasta la pasta! is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.