From: | Paul Tomblin <ptomblin(at)xcski(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | point data type |
Date: | 2001-03-27 04:15:23 |
Message-ID: | 20010326231523.C10950@allhats.xcski.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Is there a way to extract the coordinates from a point datatype? I'd like
to do something like
select x_coord(pnt), y_coord(pnt) from table_with_points;
And if there is a way to extract the points from a polygon that would be
great too.
I looked through the results of \df and \do, and it appears the only
solution is to use the distance between the point and line((0,0),(1,0))
and line((0,0),(0,1)).
--
Paul Tomblin <ptomblin(at)xcski(dot)com>, not speaking for anybody
"A little rudeness and disrespect can elevate a meaningless interaction into a
battle of wills and add drama to an otherwise dull day."
- Calvin discovers Usenet
From | Date | Subject | |
---|---|---|---|
Next Message | Prasanth Kumar | 2001-03-27 04:33:20 | Re: How to auto create a unique key for each newly added record? |
Previous Message | Stephen Davies | 2001-03-27 03:56:15 | Re: records zapped to null |