<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Select/Delete Polygons that are surrounded by other Polygons in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28524#M1021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are trying to convert our Address Annotation Feature Class into a Shapefile. I was able to use the "Feature to Polygon" tool in order to do this conversion, but it filled in all the holes in the numbers with additional polygons (please see attached photo for example). I need to select and delete all these additional polygons as efficiently as possible; since there are over 100k features, it would take WAY too long to do it by hand.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to select all the polygons that are completely surrounded by other polygons within the same shapefile? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additional notes: There are all sorts of font sizes in the Anno, so I can't just select the additional polygons by area. Also, I am not a programmer, so if you give me code, please also tell me how to use it. Thanks!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Aug 2013 17:28:13 GMT</pubDate>
    <dc:creator>JessicaGormont</dc:creator>
    <dc:date>2013-08-30T17:28:13Z</dc:date>
    <item>
      <title>Select/Delete Polygons that are surrounded by other Polygons</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28524#M1021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are trying to convert our Address Annotation Feature Class into a Shapefile. I was able to use the "Feature to Polygon" tool in order to do this conversion, but it filled in all the holes in the numbers with additional polygons (please see attached photo for example). I need to select and delete all these additional polygons as efficiently as possible; since there are over 100k features, it would take WAY too long to do it by hand.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to select all the polygons that are completely surrounded by other polygons within the same shapefile? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additional notes: There are all sorts of font sizes in the Anno, so I can't just select the additional polygons by area. Also, I am not a programmer, so if you give me code, please also tell me how to use it. Thanks!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 17:28:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28524#M1021</guid>
      <dc:creator>JessicaGormont</dc:creator>
      <dc:date>2013-08-30T17:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Select/Delete Polygons that are surrounded by other Polygons</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28525#M1022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;what about 2 copies of the source (different names). Then use the Select by Location tool to select features from PolygonLayer1 source layer PolygonLayer2 and set the spatial selection method to "are completely within the source layer feature". Tinker with the search distance as necessary.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 18:38:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28525#M1022</guid>
      <dc:creator>JimCousins</dc:creator>
      <dc:date>2013-08-30T18:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Select/Delete Polygons that are surrounded by other Polygons</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28526#M1023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried that method. The problem is that all the polygons, including the numbers, are the exact same shape when you do that. This means that they are all considered "within" the other polygons. So all the polygons get selected, rather than just the additional polys.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 18:46:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28526#M1023</guid>
      <dc:creator>JessicaGormont</dc:creator>
      <dc:date>2013-08-30T18:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Select/Delete Polygons that are surrounded by other Polygons</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28527#M1024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jessica,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What if you use this on your polygon layer &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000003m000000"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000003m000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use the buffer tool around those points and then use the select by location, wherein the buffer polygon is completely within the other polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since you want to get rid of mostly "round" polygons, most of your buffers should be within (you need to play around with the buffer distance) the "round" polygons, while the other buffers should cut your numbers and not be selected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this wasn't too confusing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 18:55:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28527#M1024</guid>
      <dc:creator>TimWitt</dc:creator>
      <dc:date>2013-08-30T18:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Select/Delete Polygons that are surrounded by other Polygons</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28528#M1025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It wasn't too confusing. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; And I thought it might work for a few minutes. However, since some of the addresses are font size 1 and others are as big as font size 9, there is no "one size fits all" buffer that will work on all the points. Also, when I converted the addresses over from annotation, they lost all their attributes, so I have no way to select them by font size to work on them as groups.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 19:18:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28528#M1025</guid>
      <dc:creator>JessicaGormont</dc:creator>
      <dc:date>2013-08-30T19:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select/Delete Polygons that are surrounded by other Polygons</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28529#M1026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you upload a small sample of the data?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 19:49:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28529#M1026</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2013-08-30T19:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Select/Delete Polygons that are surrounded by other Polygons</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28530#M1027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It wasn't too confusing. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; And I thought it might work for a few minutes. However, since some of the addresses are font size 1 and others are as big as font size 9, there is no "one size fits all" buffer that will work on all the points. Also, when I converted the addresses over from annotation, they lost all their attributes, so I have no way to select them by font size to work on them as groups.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;On the Polygon features add a double field called Parts.&amp;nbsp; Calculate it using Python in the Field Calculator to be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;!Shape.PartCount!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Shapes that enclose other shapes should have counts of 2 or more.&amp;nbsp; Doughnut holes should have counts of 1 (as well as the numbers 1, 2, 3, 5, and 7).&amp;nbsp; Select all of the features that have Part &amp;gt; 1.&amp;nbsp; Then Select by Location on the layer itself using the feature selection with a very small buffer distance and the Intersect option.&amp;nbsp; Now use the Select from Current Selection option of the Select by Attributes dialog to select Parts = 1&amp;nbsp; These should be all of the doughnut holes, but it could also include numbers from different labels that overlapped at map book boundaries or which were tightly packed together so that adjacent numbers touched.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reverse the selection and export that set of features to a new feature class (a non-destructive way of getting rid of the suspected doughnut holes, so you have the original to use for recovery of the kinds of overlaps that should not have been deleted).&amp;nbsp; Review the results and restore any touched real text that should not have been deleted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use the original feature class with a different symbol color on the removed shapes, and also use a definition query of PARTS = 1 to only show single part features.&amp;nbsp; Overlay that layer with the exported text.&amp;nbsp; That should help you spot real text values that were accidentally removed due to the way they were touched by multipart numbers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 19:50:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28530#M1027</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-08-30T19:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select/Delete Polygons that are surrounded by other Polygons</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28531#M1028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sure. Here's a shapefile with a decent sample of the polygons. Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 19:55:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28531#M1028</guid>
      <dc:creator>JessicaGormont</dc:creator>
      <dc:date>2013-08-30T19:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select/Delete Polygons that are surrounded by other Polygons</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28532#M1029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The perimeter to area ratio should also be used to help separate circular shapes from non-circular shapes.&amp;nbsp; I forget the ratio of a perfect circle but a little experimentation with a few circular examples should come up with the ratio fairly easily.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 20:05:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28532#M1029</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-08-30T20:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Select/Delete Polygons that are surrounded by other Polygons</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28533#M1030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1.) Make a universe polygon (covering all of your annotations)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.) Erase, or Union-Select-Delete, to get everything not an annotation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3.) Select the polygons in the annotation that touch the boundary of the "not annotation" layer (Select By Location)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4.) Switch the selection&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5.) Delete the donut holes&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 21:22:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28533#M1030</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2013-08-30T21:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select/Delete Polygons that are surrounded by other Polygons</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28534#M1031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for all the suggestions! Darren's solution worked very well. I just need to go in and hand-clean a few oddballs where the font was so small, the output polys were pixelated enough that the inside poly ended up touching the universal boundary.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;~Jessica&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 12:55:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28534#M1031</guid>
      <dc:creator>JessicaGormont</dc:creator>
      <dc:date>2013-09-03T12:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Select/Delete Polygons that are surrounded by other Polygons</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28535#M1032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have attribution common to the doughnuts and surrounding features the attached may be useful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 14:13:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28535#M1032</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2013-09-04T14:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select/Delete Polygons that are surrounded by other Polygons</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28536#M1033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nice one Darren! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 15:06:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-delete-polygons-that-are-surrounded-by/m-p/28536#M1033</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2013-09-04T15:06:15Z</dc:date>
    </item>
  </channel>
</rss>

