2

I am doing my bachelor thesis with QGIS program and I need some help please. I have tried until now to get the elevation profiles of the bus stops. But these are outside the bus line as shown in the picture. I could only find out the elevation profiles along the bus line and now I want to assign the bus stop (blue point) to the closest point (red point) to find out the elevation profiles of the bus stop?

here is a screenshot of the line and the bus stop

2 Answers 2

2

You might want to check out "Join attributes by nearest" tool in QGIS Processing tools. You can add blue point layer as the input layer and red as the input layer 2. Make sure your elevations are added as an attribute in the red layer. The nearest red point's attribute will be added to each of the blue points.

1
  • Thank you for the solution, that helped me!
    – user193611
    Sep 23, 2021 at 13:28
1

Apart from the great solution by @Sreya Madhavan, there's also another possibility. To get the value of the attribute measurement from the nearest point in the layer elevation, use this expression, e.g. with Field calculator:

array_first (overlay_nearest ('elevation', measurement))

Red points (layer stops) get their value (here: using a dynamic label with the expression from above) form the nearest blue point: enter image description here

1
  • that's another interessting solution, I would try.
    – user193611
    Sep 28, 2021 at 9:39

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.