[GIS] Adding ID of startpoint and endpoint to polyline layer using QGIS

lineoverlapping-featurespointqgisspatial-join

In QGIS I have two layers: a point layer and a polyline layer. Each line starts and ends at a point from the point layer.

For example: Line "ID" 5 from the polyline layer starts at point "ID" 7 from the point layer and ends at point "ID" 9.

Now I want to add two columns to the polyine layer and fill those with the "ID"s of the start point and end point. It doesn't matter which point is the start and which point is the end. I just want both "ID"s in two different fields.

I've tried intersect but that only adds the attributes of one of the points.

Is there a simple solution for this?

Best Answer

Maybe try "Vector>Data managment tools>join attributes by location" in Qgis

Related Question