<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body><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='_new'>Make it count!</a></body>
</html>