Hey all,<br><br>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.<br>
<br>-Adam<br>