2

With the graphical modeler in QGIS, how can I get the coordinates from a point layer in input and putting this value in the algorithm shortest path from vector to point in the related input of the end point coordinates.

I calculated the coordinates of the point with the field calculator algorithm and i used the variable @calculated_coordinates_OUTPUT but it doesn't work.

2
  • 1
    Why don't you simply use the point layer itself as second input to the tool?
    – Erik
    Commented Jun 5, 2023 at 8:22
  • 1
    @Erik, unfortunately, that particular tool does not accept a layer as the second input, it must be a coordinate pair ( x,y ).
    – Matt
    Commented Jun 5, 2023 at 8:56

1 Answer 1

3

Set input for end point to Pre-calculated value, then use this expression:

eval (' @end_maxx  || '','' ||  @end_maxy ')

enter image description here

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.