point data type

Started by Paul Tomblinabout 25 years ago1 messagesgeneral
Jump to latest
#1Paul Tomblin
ptomblin@xcski.com

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@xcski.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