[postgis-users] Get Coordinate Line Or Polyline Or Point
Obe, Regina
robe.dnd at cityofboston.gov
Wed May 21 07:47:07 PDT 2008
One thought
SELECT REPLACE(REPLACE(REPLACE(astext(the_geom), geometrytype(the_geom),
''),'(',''), ')','') as coords
FROM mytable
If you know the geometrytype already, might be faster to hard-code that.
Hope that helps,
Regina
________________________________
From: postgis-users-bounces at postgis.refractions.net
[mailto:postgis-users-bounces at postgis.refractions.net] On Behalf Of Bui
Anh Tin
Sent: Wednesday, May 21, 2008 10:27 AM
To: postgis-users at postgis.refractions.net
Subject: [postgis-users] Get Coordinate Line Or Polyline Or Point
hi all
i am developing asp.net and mapserver database postgresql
i have problem when get coordinate Line Or Polyline Or Point
I known query
SELECT astext(the_geom) form mytable
reuslt:
Point(x,y)
Muntiline(x y, x1,y1, .....)
How can i get only coordinate x y, x1, y1 so havent text "point or
Mutiline" ??
-----------------------------------------
The substance of this message, including any attachments, may be
confidential, legally privileged and/or exempt from disclosure
pursuant to Massachusetts law. It is intended
solely for the addressee. If you received this in error, please
contact the sender and delete the material from any computer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20080521/c701cf72/attachment.html>
More information about the postgis-users
mailing list