<br><br><div class="gmail_quote">On Fri, Aug 19, 2011 at 11:50 PM, Jules Kouadio <span dir="ltr"><<a href="mailto:sekedoua@gmail.com">sekedoua@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font size="6"><span style="color:rgb(0, 51, 51);font-family:courier new,monospace"><b><font size="1">Hi everybody.<br>After compiling pgrouting whith success, i begin my fist test whith the shortest_path() function. My data come from open street map. I've insert it in my database whith ./osm2pgrouting.<br>
<br>But a get an error when i execute this request:<br><br><br>SELECT * FROM shortest_path('SELECT gid as id,source::integer,target::integer,length::double precision as cost FROM ways',965,14, false, false);<br><br>
ERROR: Start vertex was not found.<br><br>Do you know where is the problem ?<br><br></font></b></span></font></blockquote><div><br></div><div>Start vertex was not found ... that's the problem. You need to have "965" and "14" in "source" and "target". Maybe you took the road link id (gid).</div>
<div><br></div><div>Daniel</div><div><br></div><div><br></div><div> </div></div><div><br></div>-- <br><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">Georepublic UG & Georepublic Japan<br>
eMail: <a href="mailto:daniel.kastl@georepublic.de" style="color:rgb(66, 99, 171)" target="_blank">daniel.kastl@georepublic.de</a><br>Web: <a href="http://georepublic.de/" style="color:rgb(66, 99, 171)" target="_blank">http://georepublic.de</a></span><br>