Hi Salas,<br>not sure this is the better way, but.. ;-)<br>... (you need POLYGONs, use ST_Dump() if MULTIPOLYGONs)<br><br>you can try something like this:<br><br>SELECT ST_InteriorRingN((the_geom),s) <br>FROM your_parcels , generate_series(1,(SELECT max(ST_NumInteriorRing(the_geom)) FROM your_parcels)) s<br>
 WHERE ST_NumInteriorRing(the_geom) > 0<br>AND ST_InteriorRingN(the_geom,s) IS NOT NULL<br><br><br>Fred...<br><br><br><br><div class="gmail_quote">On Thu, Dec 10, 2009 at 8:13 PM, Fsalas <span dir="ltr"><<a href="mailto:fsalas@geocuba.cu">fsalas@geocuba.cu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
  
  
    <div>
<font style="font-size: 10pt; font-family: tahoma;"> <div>Thanks 
, Fred.</div> <div> </div> <div>Yes, I need the list of island 
polygons i use the <span>ST_NumInteriorRings(), ... but only 
obtain the number , and i need obtain the list of feature island.</span>
</div> <div><span></span> </div> <div><span>How 
resolve this?</span></div> <div><span></span> </div> <div>
<span>regards , salas</span></div> <div><br> </div></font><div><div></div><div class="h5">
<br> <blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">-----Original 
Message-----<br>From: Fred Lehodey <<a href="mailto:lehodey@gmail.com" target="_blank">lehodey@gmail.com</a>><br>To: PostGIS 
Users Discussion <<a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.refractions.net</a>><br>Date: Thu, 
10 Dec 2009 19:48:17 +0000<br>Subject: Re: [postgis-users] how obtain the 
interior parcels<br><br>Hi Salas,<br>are "interior parcels" islands ?<br> 
<dl> <dt><span>ST_NumInteriorRings(geometry)</span> </dt><dd> <div>
Return the number of interior rings of the first polygon in the geometry. 
Return NULL if there is no polygon in the geometry.</div> </dd><dt><span>ST_NumInteriorRing(geometry)</span> </dt><dd> <div>Synonym to 
NumInteriorRings(geometry). The OpenGIS specs are ambiguous about the exact 
function naming, so we provide both spellings.</div> </dd><dt><span>
ST_InteriorRingN(geometry,integer)</span> </dt><dd> <div>Return the N'th interior 
ring of the polygon geometry. Return NULL if the geometry is not a polygon 
or the given N is out of range.</div> </dd><dt><br></dt></dl>Fred.<br><br><br> 
<div class="gmail_quote">On Thu, Dec 10, 2009 at 7:35 PM, Fsalas <span dir="ltr">
<<a href="mailto:fsalas@geocuba.cu" target="_blank">fsalas@geocuba.cu</a>></span> 
wrote:<br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> <div><font style="font-size: 10pt; font-family: tahoma;"> <div>Hi, </div> <div>I have a table parcels , and I 
need obtain the list of the only interior parcels, the parcels is not 
overlap.</div> <div>I test ST_Contains(), ST_Intersects() but the result is 
not correct.</div> <div> </div> <div>Salas.</div></font></div><br>
_______________________________________________<br>postgis-users mailing 
list<br><a href="mailto:postgis-users@postgis.refractions.net" target="_blank">
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></blockquote></div></div></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>