Hi Broun.<br><br>If you want the start point of a linestring then you must use:<br><br><span class="term">StartPoint(the_geom)<br><br>This function returns a POINT with the coordinates of the start point from the_geom (for the end point you should use EndPoint(the_geom))
<br><br>If you want to get the X and Y coordinates you should use the X() and Y() functions with that points like:<br><br>X(StartPoint(the_geom)) and Y(StartPoint(the_geom))<br><br>Rodrigo.<br></span><br><div><span class="gmail_quote">
On 7/5/07, <b class="gmail_sendername">Broun Uganda</b> <<a href="mailto:tekuganda@hotmail.com">tekuganda@hotmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div><div style="text-align: left;">Dear all,<br>Am trying to use the postgis reference to extract coordinates (x & y) for the <span style="font-weight: bold;">starting</span> and <span style="font-weight: bold;">ending
</span> of a line from <span style="font-weight: bold;">the_geom </span>to enable me draw points at the starting and ending of that line. Please advise me which function i should use in my trigger function. <br>I want to do something like this: 
<br>UPDATE points SET the_geom = MakePoint(New.lines.the_geom(s),-1); where (s) refers to start of line geometry & (e) refers to end  of line geometry<br>UPDATE points SET the_geom = MakePoint(New.lines.the_geom(e),-1); 
<br><pre><br></pre>Thanks<br></div><br>Broun <br><br><br><hr>Make every IM count. Download Windows Live Messenger and join the i'm Initiative now. It's free.   <a href="http://im.live.com/messenger/im/home/?source=TAGWL_June07" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Make it count!</a></div>
<br>_______________________________________________<br>postgis-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br><br>
</blockquote></div><br>