<div dir="ltr">Thnx Steve, you are the man :)<br>I suppose I need to calculate line_start and line_end for both first and last segment.<br><br><div class="gmail_quote">On Sun, Jan 11, 2009 at 3:50 PM, Stephen Woodbridge <span dir="ltr"><<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">bdair2002 wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello, I am using POSGIS with Pgrouting, I noticed that the  route deals with<br>
segments (either it takes the full segments or ignore it). Lets say I have<br>
segments A B & C , A and C are connected through B.<br>
<br>
And I want to go from A to C, the routing result is A B C which is correct,<br>
now lets say I want to go from half A to C, now the route display A B and C<br>
again.<br>
<br>
So My question is, Is it possible to make the route from the exact start<br>
point (Half A, or from the first Quarter of A) to the exact end point? Is<br>
there any function which takes the x1,y1 for segment A and a LonLat on the<br>
same segment and return me the partial geometry of A?<br>
<br>
Regards<br>
</blockquote>
<br>
<br></div>
pct := line_locate_point(line, pnt);<br>
line_start := line_substring(line, 0, pct);<br>
line_end := line substring(line, pct, 1.0);<br>
<br>
These should do what you want.<br>
<br>
-Steve W.<br>
<a href="http://imaptools.com/leaddog/routing/dd.html" target="_blank">http://imaptools.com/leaddog/routing/dd.html</a>  My routing Demo page.<div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</div></div></blockquote></div><br></div>