0

can you help me to edit my pgr_dijkstra function to required result?

Currently I had this select:

SELECT * FROM pgr_dijkstra('
SELECT gid AS id,
     source,
     target,
     cost,
     reverse_cost,
     the_geom
    FROM pgr.ways',
30623, 
30593, directed := true) 

and my result is like this:

enter image description here

What I need to do to fill geometry column?

I've tried add join to table ways by edge id, but I want to be sure that is not exist solution without join.

3

Join to table ways is as for now only solution (BTW recommended in all official documentation and workshops)

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.