TransWikia.com

QGIS distance between points - line_locate_point()

Geographic Information Systems Asked by Dasr on August 13, 2021

I need to calculate distances between points that are overlapping a layer with a line (representative of a river corridor (thus there are two layers; one is the points the other is a line). I’ve tried to follow this example (Points layer distance from the start of line layer in QGIS). I get an output, and I think I’m doing everything correctly, but I’m not sure what unit the distance measurement is coming out in. If I use the measuring tool in QGIS I get very different values.

See below:

output

Here are some screen shots of the attribute table, points and line layer.

However, for example, if I measure the distance between point 5 and 6 using the measuring tool I get a very different answer.

enter image description here

Where am I going wrong please?

One Answer

According to the big bright yellow warning line, I would guess that the distances are expressed in degrees.

To get distances in meters, you must first reproject the lines/points to a suitable projection such as 27700

Correct answer by JGH on August 13, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP