Hi Jules,<div><br></div><div>Here are working examples of your queries:</div><div><br></div><div><div><font face="&#39;courier new&#39;, monospace">SELECT * FROM shortest_path_astar(</font></div><div><font face="&#39;courier new&#39;, monospace">    &#39;SELECT gid AS id,source::integer,target::integer,length::double precision AS cost,x1,y1,x2,y2 FROM ways&#39;,</font></div>

<div><font face="&#39;courier new&#39;, monospace">    300,400,false,false</font></div><div><font face="&#39;courier new&#39;, monospace">);</font></div><div><br></div><div><font face="&#39;courier new&#39;, monospace">SELECT * FROM driving_distance(</font></div>

<div><font face="&#39;courier new&#39;, monospace">    &#39;SELECT gid AS id,source,target,length::double precision AS cost FROM ways&#39;,</font></div><div><font face="&#39;courier new&#39;, monospace">    300,1.0,false,false</font></div>

<div><font face="&#39;courier new&#39;, monospace">);</font></div><div><br></div><div><font face="&#39;courier new&#39;, monospace">SELECT * FROM tsp(</font></div><div><font face="&#39;courier new&#39;, monospace">    &#39;SELECT DISTINCT source AS source_id,x1::double precision as x,y1::double precision AS y FROM ways WHERE source IN(91,35,75,504,254)&#39;,</font></div>

<div><font face="&#39;courier new&#39;, monospace">    &#39;91,35,75,504,254&#39;,75</font></div><div><font face="&#39;courier new&#39;, monospace">);</font></div></div><div><br></div><div>Best regards,</div><div>Daniel</div>

<div><br><br><div class="gmail_quote">On Tue, Aug 23, 2011 at 12:08 AM, Jules Kouadio <span dir="ltr">&lt;<a href="mailto:sekedoua@gmail.com">sekedoua@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

This is all my databse (routing).<br>Please look at this.<div><div></div><div class="h5"><br><br><br><div class="gmail_quote">2011/8/22 Jules Kouadio <span dir="ltr">&lt;<a href="mailto:sekedoua@gmail.com" target="_blank">sekedoua@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
Hello Danniel. Thanks again for your support. I progress but i have so much to learn. <br><br>why this error for this 3 request ?<b><br><br>SELECT * from driving_distance(&#39;select gid as id,source,target,length::double precision as cost from ways&#39;,22777838,0.01);</b><br>




<br clear="all"><span lang="en"><span>ERROR:</span> <span>function</span> <span>driving_distance</span> <span>(</span><span>&quot;unknown&quot;</span><span>, integer</span><span>, numeric</span><span>) does not exist</span><br>




 <span>HINT:</span> <span>No function</span> <span>matches the</span> <span>given name</span> <span>and</span> <span>argument types</span><span>.</span> <span>You need to add</span> <span>explicit</span> <span>type</span> <span>conversions</span><span>.<br>




<br><b>SELECT * FROM shortest_path_astar(&#39;select gid as id,source::int4,target::int4,reverse_cost::double precision as reverse_cost,x1,y1,x2,y2 from ways&#39;,22,150,false,false);</b><br>ERREUR:  Error, query must return columns &#39;id&#39;, &#39;source&#39;, &#39;target&#39; and &#39;cost&#39;<br>




<br><br><i><b>SELECT * from tsp(&#39;select distinct source as source_id,x1::double precision as x,y1::double precision as y from ways where source in(91,35,75,504,254)&#39;,&#39;91,35,75,504,254&#39;,353);</b></i><br><br>




</span></span><span lang="en"><span>WARNING:</span> <span>stop</span> <span>the connection</span> <span>because of</span> <span>crash</span> <span>of another</span> <span>server process</span><br>
 <span>DETAIL:</span> <span>The</span> <span>postmaster</span> <span>has commanded</span> <span>this</span> <span>server process</span> <span>to cancel the transaction</span><br>
 <span>Current</span> <span>and leave</span> <span>because another process</span> <span>server</span> <span>left</span> <span>abnormally</span><br> <span>and there is</span> <span>probably</span> <span>corrupted</span> <span>shared memory</span><span>.</span><br>




 <span>TIP:</span> <span>In a moment</span> <span>you should be able</span> <span>to reconnect to</span> <span>the base of</span><br> <span>data and</span> <span>restart</span> <span>your order.</span><br>
 <span>the server connection</span> <span>was cut off</span> <span>unexpectedly</span><br>         <span>The server</span> <span>may have</span> <span>terminated abnormally</span> <span>before or during</span><br>
         <span>processing the request</span><span>.</span><br> <span>The</span> <span>server connection</span> <span>was lost.</span> <span>Attempting</span> <span>reset</span><span>:</span> <span>success / or sometimes not</span><span>.</span></span><br>




<span lang="en"><span><br><br><br>I don&#39;t understand why all thes errors becose shortest_path function run correctly. Exple <br><br>SELECT * FROM shortest_path(&#39;SELECT gid as id,source::integer,target::integer,length::double precision as cost FROM ways&#39;,300,400, false, false); give to me :<br>




<br> vertex_id | edge_id |        cost        <br>-----------+---------+--------------------<br>       300 |     339 |  0.139255214687805<br>       299 |     338 |  0.179544765048058<br>       195 |     337 |  0.203993410356029<br>




        63 |      56 |  0.163071365291157<br>        64 |      57 | 0.0210195901922476<br>        13 |     592 |  0.154135925931186<br>       353 |     593 |  0.167432867084967<br>       255 |     594 | 0.0922310799956524<br>




       111 |     595 |  0.410249680272814<br>       435 |     596 |  0.323252439058039<br>       400 |      -1 |                  0<br>(11 lignes)<br><br>My table &quot;ways&quot; is join.<br><br><br><br>Thanks !<br></span></span><font color="#888888">-- <br>



<font size="6"><b style="color:rgb(0, 51, 51);font-family:courier new,monospace"><img><br>
</b><span style="color:rgb(0, 51, 51);font-family:courier new,monospace"><br><br></span></font><br>
</font></blockquote></div><br><br clear="all"><br></div></div>-- <br><font size="6"><b style="color:rgb(0, 51, 51);font-family:courier new,monospace"><img><br></b><span style="color:rgb(0, 51, 51);font-family:courier new,monospace"><br>


<br></span></font><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">Georepublic UG &amp; 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>
</div>