<div dir="ltr">Hi, <div>I am using function pgr_dijkstra from pgrouting on a shape file I have attached here.</div><div>The table from the shape file has following columns: gid, geom, start_id, end_id, length</div><div><br>
</div><div>When I run the following code:</div><div><div>SELECT seq, id1 AS node, id2 AS edge, cost FROM pgr_dijkstra('</div><div>                SELECT gid AS id,</div><div>                start_id::integer AS source, </div>
<div><span class="" style="white-space:pre">            </span>end_id::integer AS target, </div><div><span class="" style="white-space:pre">                </span>length AS cost</div><div><span class="" style="white-space:pre">             </span>FROM wp_norway_network',</div>
<div>                1,100, false, false);</div></div><div>I am getting results with seq, node, edge and cost. But the values for the edge column has eight digit values which is not listed in my table. Is not it supposed to be the gid values of my table has to be given in the edge column?</div>
<div><br></div><div>I have attached the files as well. You can see the screenshot of my tables here:</div><div><a href="http://gis.stackexchange.com/questions/77465/edge-column-in-pgr-dijkstra/">http://gis.stackexchange.com/questions/77465/edge-column-in-pgr-dijkstra/</a><br>
</div></div>