<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div style="display: block;" class="yahoo_quoted"><font face="Arial" size="2">El Lunes 25 de noviembre de 2013 12:29, Daniel Kastl <daniel@georepublic.de> escribió:<br> </font> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"><div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div class="y_msg_container"><div id="yiv6776247601"><div><div dir="ltr"><br clear="none"><div class="yiv6776247601gmail_extra"><br clear="none"><br clear="none"><div class="yiv6776247601gmail_quote">On Mon, Nov 25, 2013 at 7:47 PM, Javier Mr <span dir="ltr"><<a
 rel="nofollow" shape="rect" ymailto="mailto:javiersdevmail@ymail.com" target="_blank" href="mailto:javiersdevmail@ymail.com">javiersdevmail@ymail.com</a>></span> wrote:<br clear="none">

<blockquote class="yiv6776247601gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br clear="none">
<br clear="none">
I have an application that uses pgRouting v1. I was wondering if it is possible to easily migrate from version 1 to version 2 of pgRouting. I noticed that the pgRouting v2 announcement stated that v2 is not baskwards compatible, is there any guide / list of steps to get it working using v2.<br clear="none">

</blockquote><div><br clear="none"></div><div>No there is no migration guide.</div><div>Anyone, who wants to contribute one is welcome. ;-)<br><br>Ok, at least for me has been really easy. In my case i just changed the shortest_path_astar method to pgr_astar and done a selection over the result set of that to just select id1, id2 and cost (leaving out seq), and with that the result of the v1 and v2 are the same.<br></div><div> </div><blockquote class="yiv6776247601gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


<br clear="none">
I already have postgres 9.3, postgis2.1 and pgrouting 2.0 installed (the ones available in the Ubuntu 14.04 repositories).<br clear="none"></blockquote><div><br clear="none"></div><div>Really is there already pgRouting for 14.04?</div><div> <br>Well, it is in Debian Sid (unstable), Ubuntu 14.04 pulled it from there. (So yes is there in the development branch and it's really easy to set up a pgRouting enviroment, just a package, easy, easy).<br><br></div>

<blockquote class="yiv6776247601gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br clear="none">
I'm reading the documentation for 2.0 and will read the workshop, but it does not look like there is a migration chapter.<br clear="none">
<br clear="none">
Wrapping up, is there (or will be) any migration guide?<br clear="none"></blockquote><div><br clear="none"></div><div>A few hints maybe:</div><div><ul><li>If you only used "core" functions of Dijkstra or A* you should be OK to change the function name and make small modifications as the column names of the result are slightly different. </li><li>If you used Shooting Star algorithm, then you need to look at TRSP, because Shooting Star was removed</li><li>If you used wrapper functions, then you now need to write them yourself.</li></ul><div>Best,</div></div><div>

Daniel</div><div class="yiv6776247601yqt3416646979" id="yiv6776247601yqtfd30963"><div><br>Regards.<br>Javier<br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div><div> </div></div><blockquote class="yiv6776247601gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv6776247601yqt3416646979" id="yiv6776247601yqtfd10786">
<br clear="none">
Regards.<br clear="none">
Javier Monge.</div><br clear="none">
_______________________________________________<br clear="none">
Pgrouting-users mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:Pgrouting-users@lists.osgeo.org" target="_blank" href="mailto:Pgrouting-users@lists.osgeo.org">Pgrouting-users@lists.osgeo.org</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://lists.osgeo.org/mailman/listinfo/pgrouting-users">http://lists.osgeo.org/mailman/listinfo/pgrouting-users</a><br clear="none">
</blockquote></div><br clear="none"><br clear="all"><div><br clear="none"></div>-- <br clear="none"><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse;">Georepublic UG & Georepublic Japan<br clear="none">eMail: <a rel="nofollow" shape="rect" ymailto="mailto:daniel.kastl@georepublic.de" target="_blank" href="mailto:daniel.kastl@georepublic.de" style="color:rgb(66,99,171);">daniel.kastl@georepublic.de</a><br clear="none">

Web: <a rel="nofollow" shape="rect" target="_blank" href="http://georepublic.de/" style="color:rgb(66,99,171);">http://georepublic.de</a></span><div class="yiv6776247601yqt3416646979" id="yiv6776247601yqtfd59913">
</div></div></div></div></div><br><br></div> </blockquote>  </div> </div>   </div> </div></body></html>