2

I have a line layer and a point layer, I need the distance between the first and the last point measured along the line.

How can I do that using QGIS? Do I need to know linear reference? I don't have any knowledge on PostGIS.

  • Is the data stored in a PostGIS database? – HeyOverThere Jan 2 '14 at 16:14
  • No, it isn't. The data is on shapefile format. – Ariel Jan 2 '14 at 16:53
  • Oh, I see. Are the lines crossing the points? the points should be also vertexes of the line right? – Riccardo Jan 2 '14 at 20:02
  • In fact, the points are near to the line, but they aren't connected or crossed by it. But, yeah, the points should be vertexes of the line. The lines are routes and the points are bus stops, and I want to mesure the distance of the bus stops along the route. – Ariel Jan 2 '14 at 20:11
  • I don't see your process. Do you have a common attribute to dissolve your lines and then get the biggest distance along the line between two points that intersect the line? – Jorge Sanz Jan 3 '14 at 7:43
2

You can use the new LRS plugin to QGIS 2.0: http://blazek.github.io/lrs/ . The plugin uses a tolerance (you can define) between the line and each point. I think this tool solve your problem.

  • wow, it looks this work very well, and is exactly what I need. I'll try to learn how to use it. – Ariel Feb 24 '14 at 19:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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