2

I have a Line layer and a Point layer in Qgis. The lines snapped to the points. I need the distance between the reference Point (number 12 in the image) to the other points along the line. I have tried this V.distance, couldn't help me.

The distance between the Yellow Point to all other Points

1 Answer 1

2

Based on the screenshot, i would say that the problem is that your points are not really on the line.

So you may keep the v.distance solution but first reproject the points on the line. with python in Qgis you should look to things like this : Moving points onto lines (~neighborhood)

Another solution i know is to use PostGis and then go for ST_Line_Interpolate_Point in combo with St_length of your line, it will do the trick.

see : https://postgis.net/docs/manual-1.4/ST_Line_Interpolate_Point.html

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.