1

I have a line shapefile and a point shapefile that are start and end point of these line features. Now I want to join ALL attributes from both start and end points to the line shapefile.

How do I do this using QGIS?

1
  • Is a python snippet an option?
    – YoLecomte
    Commented Apr 10, 2018 at 7:10

1 Answer 1

2

You can achieve this by adding a field filled with same IDs for the polyline, starting point, and end point.

Then use Join attribute tables tool from Processing toolbox -> QGIS geoalgorithms -> Vector general tools -> Join attribute tables.

enter image description here

Select the polyline as input layer, starting point as input layer 2, the ID field of polyline in Target field, and the common ID field of starting point layer in Target field 2. Repeat the same process for end point layer.

However, if the starting point and end point are located in one attribute point layer, you need to use Join attribute tables only one time.

7
  • Great. But how to create that unique field for every single line, start and end point? That ID must be the same for that line and the next one and next one. How to solve that?
    – user104851
    Commented Apr 10, 2018 at 6:54
  • Are starting point layer and end point layer separated?
    – ahmadhanb
    Commented Apr 10, 2018 at 7:03
  • No, that is the same layer
    – user104851
    Commented Apr 10, 2018 at 7:03
  • Is there a unique field to distinguish between starting point and end point in the attribute table?
    – ahmadhanb
    Commented Apr 10, 2018 at 7:07
  • No, there is no unique field.
    – user104851
    Commented Apr 10, 2018 at 7:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.