<div dir="ltr">Hi again Steve!<div><br></div><div>You got it right.</div><div><br></div><div>All the simple pgr_trsp queries you suggested returned:</div><div><br></div><div><b>seq;id1;id2;cost</b></div><div>0;-1;0;0<br></div>
<div><br></div><div>The result from pgr_analyzegraph check is "OK".</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
SELECT id1 as path, ST_Length_Spheroid(st_astext(st_linemerge(st_union(b.the_geom))), 'SPHEROID["GRS_1980",6378137,298.257222101]') <br>  FROM pgr_kdijkstraPath(<br>      'SELECT id, source, target, cost, reverse_cost FROM ways',<br>
      98306, array[146098], true, true) a,<br>            ways b<br>WHERE a.id3=<a href="http://b.id">b.id</a><br>GROUP by id1<br>ORDER by id1;</blockquote></div><div><br></div><div>Definitely I think something is not OK. The output of the query above is the following one:</div>
<div><br></div><div><b>path;st_length_spheroid</b></div><div>146098;4374.81625857547<br></div><div><br></div><div>As may be guessing already, this query for the other 2 pairs of vids (<span style="font-family:arial,sans-serif;font-size:13px">228347, 228369 and 228369,98306)</span> also returned the expected distances.</div>
<div><br></div><div>What do you suggest as next step?</div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div>--</div><div>Helder Alves </div></div></div></div></div>