0

This pgr_ksp function is not working, as answered in an earlier question

SELECT seq , id1 , id2 , cost FROM pgr_ksp(  
    'SELECT gid as id, fnode_ as source, tnode_ as target, length as cost 
     FROM road', 71670, 97745, 2, false) ;

I have tried all these solutions, but nothing works. Also there are no directions indicating possible restrictions that I could find.

pgr_dijkastra is working well with output.

SELECT seq, id1 AS node, id2 AS edge, cost,geom 
FROM 
   pgr_dijkstra('SELECT gid as id, fnode_ as source, tnode_ as target, length as cost 
                 FROM road',71670 , 97745,false, false)
 JOIN road ON pgr_dijkstra.id2 = road.gid ;
2
  • Which version are you using of pgRouting (2.0 or 2.1? ). I think some fixes happened in 2.1 not in 2.0. – LR1234567 Feb 20 '16 at 20:49
  • it's 2.1.0 and still not working. please help asap. – yashmz Feb 21 '16 at 13:05
1

I am from the pgRouting developing team. Can you please put this in a new issue in: https://github.com/pgRouting/pgrouting/issues We need to reproduce your problem. We are about to launch pgrouting 2.2, and if there still an issue in pgr_ksp of version 2.1 we really like to fix it in the release. Thanks. Vicky

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.