Re: [mapserver-users] optimal path between two points.

2009-02-03 Thread Daniel Kastl
Hi, I agree with Steve, that you better ask this question in the pgRouting forum or on their list. Looking at your screenshot my first thought was that your network topology is not correct, maybe you took a too high "tolerance" value when you assigned source and target IDs (units meter instead of

Re: [mapserver-users] optimal path between two points.

2009-02-03 Thread Stephen Woodbridge
Yup, the results from pgRouting look broken. You should repost to the pgRouting list and describe how you set up your data. What tolerances you used when you created the vertices_tmp table, etc. This is not relevant to the mapserver list. -Steve W Valeria Muñoz wrote: example the query is

Re: [mapserver-users] optimal path between two points.

2009-02-03 Thread Valeria Muñoz
example the query is optimal path between 887 y 852. : SELECT rt.gid, AsText(rt.the_geom) AS wkt, length(rt.the_geom) AS length, calle.gid FROM calle, (SELECT gid, the_geom FROM dijkstra_sp_delta(

Re: [mapserver-users] optimal path between two points.

2009-02-03 Thread Stephen Woodbridge
This may be cause because you need to check the direction of the line segments before you create a linestring to pass to the client. If you route is something like segment source target 11 3 24 3 37 4 etc route (1,2,4,3,7,4) or 1,3,3,4) depending on ho

Re: [mapserver-users] optimal path between two points.

2009-01-20 Thread Daniel Kastl
*Sent:* Monday, January 19, 2009 2:20 PM > *To:* Frank Warmerdam > *Cc:* mapserver-users@lists.osgeo.org > *Subject:* Re: [mapserver-users] optimal path between two points. > > frank > > thanks for the tips. I use prRouting and create the table >

Re: [mapserver-users] optimal path between two points.

2009-01-20 Thread Stephen Woodbridge
Valeria Muñoz wrote: Hi Stephen thanks for the tip... I read the example and implements it with my data. Now my problem is :how to rescue the data for instructions,distance,time etc? .. how can I know whether to turn right or left? Assume you have two segments a->b and a->c and we want t

Re: [mapserver-users] optimal path between two points.

2009-01-20 Thread Valeria Muñoz
Hi Stephen thanks for the tip... I read the example and implements it with my data. Now my problem is :how to rescue the data for instructions,distance,time etc? .. how can I know whether to turn right or left? RG. 2009/1/20 Stephen Woodbridge > Valeria, > > You should really look at the ex

Re: [mapserver-users] optimal path between two points.

2009-01-20 Thread Stephen Woodbridge
Valeria, You should really look at the example provided with: http://pgrouting.postlbs.org/wiki/WorkshopFOSS4G2007 This is what I started with and then made my own modifications. The above workshop should walk you through how to setup a pgRouting without my additional hacks which will only con

RE: [mapserver-users] optimal path between two points.

2009-01-20 Thread Fawcett, David
...@lists.osgeo.org] On Behalf Of Valeria Muñoz Sent: Monday, January 19, 2009 2:20 PM To: Frank Warmerdam Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] optimal path between two points. frank thanks for

Re: [mapserver-users] optimal path between two points.

2009-01-19 Thread Stephen Woodbridge
Valeria Muñoz wrote: frank thanks for the tips. I use prRouting and create the table dijsktra_result. Now how can I implement with my mapfile? , how deliver the data .. have some sample code? thanks for your help. 2009/1/19 Frank Warmerdam mailto:warmer...@pobox.com>> Valeria Muñoz

Re: [mapserver-users] optimal path between two points.

2009-01-19 Thread Valeria Muñoz
frank thanks for the tips. I use prRouting and create the table dijsktra_result. Now how can I implement with my mapfile? , how deliver the data .. have some sample code? thanks for your help. 2009/1/19 Frank Warmerdam > Valeria Muñoz wrote: > >> Hi >> I would like to implement the service

Re: [mapserver-users] optimal path between two points.

2009-01-19 Thread Frank Warmerdam
Valeria Muñoz wrote: Hi I would like to implement the service "optimum path between 2 points," can someone help me to be able to implement it?. The general idea is that a user picks a point A and point B and a display on the map the best route to get from point A to B. Valeria, MapServer