Eric, <br>ST_AsText is one function you could use; then you could parse the list in PHP, for example (you may have to add the schema prefix to your tablename)<br><br>    select name, field_code, <br>        trim(trailing ')))' from trim(leading 'MULTIPOLYGON(((' from st_asText(the_geom))) <br>

      as blockbounds <br>    from postgismethane<br>    where name = 'Bandini'<br><br>Mark<br><br><div class="gmail_quote">On Sun, Jun 26, 2011 at 8:00 PM, Eric Sepich <span dir="ltr"><<a href="mailto:sepotovich@gmail.com">sepotovich@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I exported a .shp full of polygons to my PostGIS enabled database. I think the data is in WKB (Well known binary format) but I am not sure yet. Attached is a screenshot. I need to write a query to return the first shape in the table and I need to be able to get the coordinates of the shape into an array. My language will be PHP to start out with. I have been reading the documentation but I really don't understand enough yet to really get started. Does anyone know readily how to do something like this?<br>


<br>Thank you,<br>Eric S.<br><div style="padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;">
</div>
<br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
<br></blockquote></div><br>