[postgis-users] Converting Geometry to WKT

Adam Eskreis aeskreis at gmail.com
Mon Dec 13 09:41:47 PST 2010


Hey all,

I was wondering if there was any documentation out there on how to convert
PostGIS geometry to WKT.  The reason that I need this is I am looking to
write a PHP library that will allow me to pull PostGIS geometry directly
from the database (without having to use the AsText() function) and put the
resulting geometries into PHP objects (such as a Point object, Polygon
object, ect).  This is essential for my application.  I have written the PHP
class already to accept WKT, but I want to take it to the next level and
actually parse the raw geometry.  I've done a lot of searching on google and
haven't been able to find anything similar nor could I find any
documentation about how PostGIS stores geometry.  Can anyone who has
undertaken this before give me a nudge in the right direction?  Thanks.

-Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20101213/7405126b/attachment.html>


More information about the postgis-users mailing list