1

My QGIS (3.22. Biatowieza) question is the following: I have a line layer with objects that have a length in metres. And there is a separate point layer with point objects that are located besides of the line geometry, not directly on it.

Finally, the point objects should get a position attribute corresponding to the belonging length of the line (possibly with rectangle transformation as the nearest distance between line and point object).

2
  • 1
    Welcome to GIS SE. As a new user, Please take the Tour, which explains how our Focused question/Best answer model operates. Questions should always answer the questions "What have you tried?" and "Where are you stuck?" then ask a question (with a question mark). Please Edit your Question to meet this criteria.
    – Vince
    Aug 27, 2022 at 12:52
  • I can't understand what is unclear about this question, or has this been edited? Voted to reopen. Aug 29, 2022 at 9:15

1 Answer 1

0

On the point layer, you can get the length of the nearest line with this expression (e.g. with Field calculator to create a new attribute):

overlay_nearest(
    'line',  -- replace with the name of your line layer
    $length
)[0]

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.