Hi Steve,<br>Bad news :(<br><br>As I mentioned, I already have a test application to read from text file, it will be very helpful if you send me a csv file containing the graph. Also please let me know if there is any error message. I am looking into my code for a possible reason.<br>
<br>-Razequl<br><br><div class="gmail_quote">On Sun, Jul 1, 2012 at 3:19 AM, Stephen Woodbridge <span dir="ltr"><<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Razequl,<br>
<br>
I tried a larger test and it crashed the server.<br>
<br>
You can test it like this:<br>
<br>
# fetch a test file from my server<br>
wget <a href="http://imaptools.com/dl/test.tgz" target="_blank">http://imaptools.com/dl/test.<u></u>tgz</a><br>
<br>
# extract the tarfile into directory test<br>
tar xzf test.tgz<br>
<br>
# load the file into your test database into table "st"<br>
shp2pgsql -s 4326 -c -D -I -N skip test/bdsp-bug.shp st | psql -U user -h localhost mydatabase<br>
<br>
# get into psql or pgadmin and run the following<br>
psql -U user -h localhost mydatabase<br>
SELECT * FROM st, (<br>
              SELECT gid,the_geom<br>
                FROM bidir_dijkstra_shortest_path(<br>
                  'SELECT link_id  as id,<br>
                           source::integer,<br>
                           target::integer,<br>
                           cost_time::double precision as cost ,<br>
                           rcost_time as reverse_cost<br>
                     FROM st a',<br>
                  1187405,<br>
                  1187508,<br>
                  true,<br>
                  true<br>
         ), st where edge_id = link_id<br>
    ) as rt<br>
    WHERE st.gid=rt.gid;<br>
<br>
This crashes my server!<br>
<br>
If you want to write a testmain.cpp, I can provide the graph data in a csv file that you could read in and pass to your code instead of the query to get the data from table st.<br>
<br>
-Steve<br>
______________________________<u></u>_________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/pgrouting-dev</a><br>
</blockquote></div><br>