I've been getting into PyQGIS, and as a start I want to select the first instance of pair values of a point layer (start and end of a street), identified by the same integer, I got this, but it doesn't work:
("int_id" is the value that is the same for the start and end points)
cap = iface.activeLayer()
feat = cap.getFeatures()
frm = []
for f in feat:
if f["int_id"] not in frm:
frm.append(f.id())
cap.select(frm)
I need to create lines from these points (start and end), I haven't found a way to create them in PyQGIS, but I found point connector plugin that could at least create the streets that are a straight line, but first I need to separate the start points from the end points.