I would like to snap line features (.shp) to the corresponding point features based on a common attribute field they have (and not according to any distance). I have around 150 different attribute values, and for each I do have only one corresponding point feature but several lines to snap to it.
I thought of doing the following steps to achieve this goal:
1) Creating a list of values containing uniques values from the line attribute field
2) Iterating over the point and the line layer to select features corresponding to each unique value
3) Snap the selected lines to the selected point
I did the first step but I do not manage to code the following steps in PyQGIS. Does someone have any ideas how it could be done?