When in QGIS I run processing tool Shortest path (point to layer) ... I am satisfied with the result (below picture red line). But when I try to run the same tool in QGIS modeller, the result is different (see picture green line) enter image description here

How to define in QGIS modeller shortest path (point to layer) START POINT in expression from point layer (see picture)? I have three vector layers:

  1. Start point layer (only one point)
  2. End point layer (many points)
  3. Network layer All layers are in the same coordinate system: EPSG:3301

enter image description here

  • Error is in expression: x(transform($geometry, layer_property(@layer_name, 'crs'),'EPSG:3301')) || ',' || y(transform($geometry, layer_property(@layer_name, 'crs'),'EPSG:3301'))
    – Rii Pii
    Jan 13, 2021 at 18:17
  • Error: geom_to_wkt(make_point(x(geometry('layer_start_2672a933_f4f5_45c8_8e78_3c129af475b0')),y(geometry('layer_start_2672a933_f4f5_45c8_8e78_3c129af475b0'))))
    – Rii Pii
    Jan 13, 2021 at 18:36
  • It worked fine for me here link to answer
    – Rii Pii
    Oct 2, 2022 at 12:13


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.