0

I have two datasets, one containing a single linestring representing paths, one with several points representing hubs intersecting the linestring (or: one with roads, one with houses sitting "on" the road). I want to extract the exact distance along the linestring within a certain distance from the points.

Extract within distance returns the whole linestring. Segmentizing the linestring into multiple parts (ie. by splitting at nodes) yields only an approximate result, as the segments still have some length. I could create points along lines, and segmentize the linestring by those points, but I'm wondering if there's a more elegant solution

1 Answer 1

0

...found the Service Area function, which does the trick

More detailed: One can use the "Service Area (From Layer) function, where the network is the linestring, path to calculate "shortest", vector layer with start points the start points and the travel cost the distance along the linestring

3
  • 6
    Future readers will likely appreciate a more detailed answer!
    – Stu Smith
    Sep 27, 2022 at 7:27
  • More detailed: One can use the "Service Area (From Layer) function, where the network is the linestring, path to calculate "shortest", vector layer with start points the start points and the travel cost the distance along the linestring. Sep 28, 2022 at 8:04
  • 1
    Add this to the answer, not as a comment.
    – Babel
    Oct 1, 2022 at 15:47

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.