Quantcast
Channel: Connecting points by line number and code in QGIS - Geographic Information Systems Stack Exchange
Viewing all articles
Browse latest Browse all 3

Answer by JGH for Connecting points by line number and code in QGIS

$
0
0

You can achieve it using a Virtual layer.

Go the the menu layer / add layer / add-edit virtual layer and enter the following query. You may want to add more fields and a unique ID.

select MakeLine(pt.geometry) as geometryfrom myPointLayer ptgroup by pt.code, pt."Line num"

If the input points are not already ordered by ID, you may have to include a sub-query to sort the points first, then apply makeLine on it.

enter image description here


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>