<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div>hello, </div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;">i want to use the k shortest paths algorithm i see in <a href="https://github.com/pgRouting/pgrouting/tree/master/src/ksp/src" style="font-size: 10pt;">https://github.com/pgRouting/pgrouting/tree/master/src/ksp/src</a></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;">i must to bind to postgis the C fucstion before?</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;">if yes how can do this?</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family:
 arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;">thank you so much</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><div class="y_msg_container"><br>This is already implemented in pgRouting, look in branch sew-devel-2_0 which is our 2.0 development branch.<br><a href="https://github.com/pgRouting/pgrouting/tree/sew-devel-2_0" target="_blank">https://github.com/pgRouting/pgrouting/tree/sew-devel-2_0</a><br><br>-Steve<br>------------------------------<br><span style="font-size: 12pt;">You can implement
 any functions you want using stored procedures with </span>plpsql.  Alternatively, you can write functions in C and bind them to<br>postgis.<br><br>plpgsql guide: <a href="http://www.postgresql.org/docs/9.1/static/plpgsql.html" target="_blank">http://www.postgresql.org/docs/9.1/static/plpgsql.html</a><br>c functions guide: <a href="http://www.postgresql.org/docs/9.1/static/xfunc-c.html" target="_blank">http://www.postgresql.org/docs/9.1/static/xfunc-c.html</a><br><br>best of luck.<br>-Adam<br></div> </div> </div>  </div></body></html>