<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
dear pgrouting list, <br><br>i would like to ask a question regarding the darp branch of pgrouting. i am trying to get that up and running for windows 7 - which works fine using the compiled version of sanak (https://github.com/sanak). <br>nevertheles i am getting an error if i am using the darp function. I have prepared the data according to the documentation and the darp function starts working&nbsp; - indicated by the messages window of postgres: orders and vehicle are read in and processed correctly, but the distances query throws an error: <br><table class="CALSTABLE" border="1"><tbody><tr><td><tt class="LITERAL">42P11</tt></td>

          <td>INVALID CURSOR DEFINITION</td>

          <td>invalid_cursor_definition</td></tr></tbody></table><br>the complete messages output is given here: <br>HINWEIS:&nbsp; inside darp<br>HINWEIS:&nbsp; start darp<br>HINWEIS:&nbsp; Query: select order_id, size, pu_time, do_time, pu_lt, do_lt, pu_ut, do_ut, from_point, to_point from "order" order by order_id<br>HINWEIS:&nbsp; Query executed<br>HINWEIS:&nbsp; Orders before: 0<br>HINWEIS:&nbsp; cursor fetched<br>HINWEIS:&nbsp; Fetching order<br>HINWEIS:&nbsp; Tuples: 8<br>HINWEIS:&nbsp; Got tuple desc<br>HINWEIS:&nbsp; inside fetch_order<br>HINWEIS:&nbsp; id = 1<br>HINWEIS:&nbsp; order_id = 1<br>HINWEIS:&nbsp; puTime = 386758800<br>HINWEIS:&nbsp; doTime = 386762400<br>HINWEIS:&nbsp; puLT = d<br>HINWEIS:&nbsp; doLT = d<br>HINWEIS:&nbsp; puUT = d<br>HINWEIS:&nbsp; doUT = d<br>HINWEIS:&nbsp; from = 79694728<br>HINWEIS:&nbsp; to = 79694736<br>HINWEIS:&nbsp; size = 3.000000<br>HINWEIS:&nbsp; Order fetched<br>HINWEIS:&nbsp; inside fetch_order<br>HINWEIS:&nbsp; id = 2<br>HINWEIS:&nbsp; order_id = 2<br>HINWEIS:&nbsp; puTime = 386758800<br>HINWEIS:&nbsp; doTime = 386762400<br>HINWEIS:&nbsp; puLT = d<br>HINWEIS:&nbsp; doLT = d<br>HINWEIS:&nbsp; puUT = d<br>HINWEIS:&nbsp; doUT = d<br>HINWEIS:&nbsp; from = 79694992<br>HINWEIS:&nbsp; to = 79695000<br>HINWEIS:&nbsp; size = 4.000000<br>HINWEIS:&nbsp; Order fetched<br>HINWEIS:&nbsp; inside fetch_order<br>HINWEIS:&nbsp; id = 3<br>HINWEIS:&nbsp; order_id = 3<br>HINWEIS:&nbsp; puTime = 386758800<br>HINWEIS:&nbsp; doTime = 386762400<br>HINWEIS:&nbsp; puLT = d<br>HINWEIS:&nbsp; doLT = d<br>HINWEIS:&nbsp; puUT = d<br>HINWEIS:&nbsp; doUT = d<br>HINWEIS:&nbsp; from = 79695256<br>HINWEIS:&nbsp; to = 79695264<br>HINWEIS:&nbsp; size = 5.000000<br>HINWEIS:&nbsp; Order fetched<br>HINWEIS:&nbsp; inside fetch_order<br>HINWEIS:&nbsp; id = 4<br>HINWEIS:&nbsp; order_id = 4<br>HINWEIS:&nbsp; puTime = 386758800<br>HINWEIS:&nbsp; doTime = 386762400<br>HINWEIS:&nbsp; puLT = d<br>HINWEIS:&nbsp; doLT = d<br>HINWEIS:&nbsp; puUT = d<br>HINWEIS:&nbsp; doUT = d<br>HINWEIS:&nbsp; from = 79695520<br>HINWEIS:&nbsp; to = 79695528<br>HINWEIS:&nbsp; size = 2.000000<br>HINWEIS:&nbsp; Order fetched<br>HINWEIS:&nbsp; inside fetch_order<br>HINWEIS:&nbsp; id = 5<br>HINWEIS:&nbsp; order_id = 5<br>HINWEIS:&nbsp; puTime = 386758800<br>HINWEIS:&nbsp; doTime = 386762400<br>HINWEIS:&nbsp; puLT = d<br>HINWEIS:&nbsp; doLT = d<br>HINWEIS:&nbsp; puUT = d<br>HINWEIS:&nbsp; doUT = d<br>HINWEIS:&nbsp; from = 79695784<br>HINWEIS:&nbsp; to = 79695792<br>HINWEIS:&nbsp; size = 10.000000<br>HINWEIS:&nbsp; Order fetched<br>HINWEIS:&nbsp; inside fetch_order<br>HINWEIS:&nbsp; id = 6<br>HINWEIS:&nbsp; order_id = 6<br>HINWEIS:&nbsp; puTime = 386758800<br>HINWEIS:&nbsp; doTime = 386762400<br>HINWEIS:&nbsp; puLT = d<br>HINWEIS:&nbsp; doLT = d<br>HINWEIS:&nbsp; puUT = d<br>HINWEIS:&nbsp; doUT = d<br>HINWEIS:&nbsp; from = 79696048<br>HINWEIS:&nbsp; to = 79696056<br>HINWEIS:&nbsp; size = 3.000000<br>HINWEIS:&nbsp; Order fetched<br>HINWEIS:&nbsp; inside fetch_order<br>HINWEIS:&nbsp; id = 7<br>HINWEIS:&nbsp; order_id = 7<br>HINWEIS:&nbsp; puTime = 386758800<br>HINWEIS:&nbsp; doTime = 386762400<br>HINWEIS:&nbsp; puLT = d<br>HINWEIS:&nbsp; doLT = d<br>HINWEIS:&nbsp; puUT = d<br>HINWEIS:&nbsp; doUT = d<br>HINWEIS:&nbsp; from = 79696312<br>HINWEIS:&nbsp; to = 79696320<br>HINWEIS:&nbsp; size = 5.000000<br>HINWEIS:&nbsp; Order fetched<br>HINWEIS:&nbsp; inside fetch_order<br>HINWEIS:&nbsp; id = 8<br>HINWEIS:&nbsp; order_id = 8<br>HINWEIS:&nbsp; puTime = 386758800<br>HINWEIS:&nbsp; doTime = 386762400<br>HINWEIS:&nbsp; puLT = d<br>HINWEIS:&nbsp; doLT = d<br>HINWEIS:&nbsp; puUT = d<br>HINWEIS:&nbsp; doUT = d<br>HINWEIS:&nbsp; from = 79696576<br>HINWEIS:&nbsp; to = 79696584<br>HINWEIS:&nbsp; size = 0.000000<br>HINWEIS:&nbsp; Order fetched<br>HINWEIS:&nbsp; cursor fetched<br>HINWEIS:&nbsp; Tuples: 8<br>HINWEIS:&nbsp; order_num = 8<br>HINWEIS:&nbsp; Query: select id, id as vehicle_id, capacity, depot from vehicle<br>HINWEIS:&nbsp; Query executed<br>HINWEIS:&nbsp; Fetching order<br>HINWEIS:&nbsp; Tuples: 1<br>HINWEIS:&nbsp; Got tuple desc<br>HINWEIS:&nbsp; Before vehicle fetched<br>HINWEIS:&nbsp; inside fetch_vehicle<br>HINWEIS:&nbsp; id = 0<br>HINWEIS:&nbsp; Got vehicle_id<br>HINWEIS:&nbsp; vehicle_id = 1<br>HINWEIS:&nbsp; capacity = 15.000000<br>HINWEIS:&nbsp; Vehicle fetched<br>HINWEIS:&nbsp; Tuples: 1<br>HINWEIS:&nbsp; Query: select * from distances_5<br>HINWEIS:&nbsp; Query executed<br>HINWEIS:&nbsp; Fetching distance<br>HINWEIS:&nbsp; Got tuple desc<br>FEHLER:&nbsp; Plan mit mehreren Anfragen kann nicht als Cursor geöffnet werden<br><br>********** Error **********<br><br>FEHLER: Plan mit mehreren Anfragen kann nicht als Cursor geöffnet werden<br>SQL state: 42P11<br><br><br>I would be interested in the following things:<br>which output should the distances query have (from_order, to_order, from_point, to_point, value): i assume for every order_id (from_point) the distances to every other order_id (drop_off point) should be the desired output?<br><br>thanks very much in advance :)<br>johannes scholz<br><br>                                               </div></body>
</html>