Hi,<div><br></div><div>I am using following SQL query to retrieve the coordinates of the first vertex of the first multipolygon in the </div><div>table Building_Poly.</div><div><br></div><div><div>select X(pointN(ExteriorRing(GeometryN(the_geom,1)),<b>1</b>)), Y(pointN(ExteriorRing(GeometryN(the_geom,1)),<b>1</b>)) from</div>
<div>building_poly limit 1;</div></div><div><br></div><div>In order to get the other coordinates of the vertices of the polygon, i want to find out the number of vertices of the</div><div>multipolygon and then iterate through. How to do this using a loop?</div>
<div><br></div><div>Cheers, sanjeewa.</div>