Perfect. Thank you.<br><br><b><i>Michael Fuhr <mike@fuhr.org></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> On Tue, Aug 08, 2006 at 06:49:55AM +0100, Donal Regan wrote:<br>> What is the quickest way to combine 2 columns x and y into a<br>> single geometry column of type point?<br><br>You might be looking for MakePoint().  Here's an example:<br><br>test=> SELECT * FROM foo;<br> id | x  | y  | geom <br>----+----+----+------<br>  1 | 12 | 34 | <br>  2 | 56 | 78 | <br>(2 rows)<br><br>test=> UPDATE foo SET geom = MakePoint(x, y);<br>UPDATE 2<br>test=> SELECT id, x, y, AsText(geom) FROM foo;<br> id | x  | y  |    astext    <br>----+----+----+--------------<br>  1 | 12 | 34 | POINT(12 34)<br>  2 | 56 | 78 | POINT(56 78)<br>(2 rows)<br><br>-- <br>Michael Fuhr<br>_______________________________________________<br>postgis-users mailing
 list<br>postgis-users@postgis.refractions.net<br>http://postgis.refractions.net/mailman/listinfo/postgis-users<br></blockquote><br><p>
                <hr size=1> 
<a href="http://us.rd.yahoo.com/mail/uk/taglines/default/nowyoucan/spam_1gb/*http://us.rd.yahoo.com/evt=40565/*http://uk.docs.yahoo.com/nowyoucan.html">Inbox full of spam?</a> Get leading spam protection and 1GB storage with All New Yahoo! Mail.