<?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 Re: Fill hole in polygon in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/fill-hole-in-polygon/m-p/1149024#M7858</link>
    <description>&lt;P&gt;When the mentioned selection creates over 180 thousand parts, then I can distinguish external and internal how?&lt;/P&gt;</description>
    <pubDate>Tue, 01 Mar 2022 10:22:30 GMT</pubDate>
    <dc:creator>DavidMrázek</dc:creator>
    <dc:date>2022-03-01T10:22:30Z</dc:date>
    <item>
      <title>Fill hole in polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/fill-hole-in-polygon/m-p/1149003#M7856</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I'm trying to find and fill holes in polygons.&lt;/P&gt;&lt;P&gt;This is how I look for holes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;private async Task EditHole(FeatureLayer polygonLayer, QueryFilter queryFilter)
        {
            await QueuedTask.Run(() =&amp;gt;
            {
                var list = new List&amp;lt;Polygon&amp;gt;();
                ReadOnlySegmentCollection seg = null;
                var polygonFeatureClass = polygonLayer.GetTable() as FeatureClass;
                var polygonDefinition = polygonFeatureClass.GetDefinition();
                var rowCursor = polygonFeatureClass.Search(queryFilter);
                while (rowCursor.MoveNext())
                {
                    using (var lineFeature = rowCursor.Current as Feature)
                    {
                        var polygonGeometry = lineFeature.GetShape() as Polygon;
                        IEnumerator&amp;lt;ReadOnlySegmentCollection&amp;gt; segments = polygonGeometry.Parts.GetEnumerator();
                        while (segments.MoveNext())
                        {
                            //I do not know what to do
                           
                        }
                    }
                }
               
            });
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, a polygon like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="polygon with holes.png" style="width: 373px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35230iFBF7737172A135E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="polygon with holes.png" alt="polygon with holes.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would anyone have an idea or advice on how to do this?&lt;/P&gt;&lt;P&gt;Is there any way to distinguish between the outer and inner polygon?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any advice and help&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 09:26:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/fill-hole-in-polygon/m-p/1149003#M7856</guid>
      <dc:creator>DavidMrázek</dc:creator>
      <dc:date>2022-03-01T09:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Fill hole in polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/fill-hole-in-polygon/m-p/1149022#M7857</link>
      <description>&lt;P&gt;the outer ring should be the first part, the inner rings follow for singlepart shapes with holes&lt;/P&gt;&lt;P&gt;or an oft used method is to calculate the area for the bits using the "shoelace formula"... clockwise oriented outer rings yield a negative area and ccw inner rings yield a positive area&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 10:16:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/fill-hole-in-polygon/m-p/1149022#M7857</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-03-01T10:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Fill hole in polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/fill-hole-in-polygon/m-p/1149024#M7858</link>
      <description>&lt;P&gt;When the mentioned selection creates over 180 thousand parts, then I can distinguish external and internal how?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 10:22:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/fill-hole-in-polygon/m-p/1149024#M7858</guid>
      <dc:creator>DavidMrázek</dc:creator>
      <dc:date>2022-03-01T10:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Fill hole in polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/fill-hole-in-polygon/m-p/1149031#M7859</link>
      <description>&lt;P&gt;Using Pro tools&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/eliminate-polygon-part.htm" target="_blank"&gt;Eliminate Polygon Part (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But this seems to be a programming language specific question and not an ArcGIS Pro question.&amp;nbsp; Is there an SDK that you want it moved to?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 10:41:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/fill-hole-in-polygon/m-p/1149031#M7859</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-03-01T10:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Fill hole in polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/fill-hole-in-polygon/m-p/1149032#M7860</link>
      <description>&lt;P&gt;Surely this is a question rather there, how is it moved?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 10:43:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/fill-hole-in-polygon/m-p/1149032#M7860</guid>
      <dc:creator>DavidMrázek</dc:creator>
      <dc:date>2022-03-01T10:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Fill hole in polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/fill-hole-in-polygon/m-p/1149036#M7861</link>
      <description>&lt;P&gt;given the proliferation of curly braces, I moved it to the arcgis-api-for-javascript question section.&lt;/P&gt;&lt;P&gt;You choose your Community from the following to get a targeted location&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="communities.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35233i136E90698BADA861/image-size/medium?v=v2&amp;amp;px=400" role="button" title="communities.png" alt="communities.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;moderators can do the moves&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 10:54:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/fill-hole-in-polygon/m-p/1149036#M7861</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-03-01T10:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Fill hole in polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/fill-hole-in-polygon/m-p/1149037#M7862</link>
      <description>&lt;P&gt;ArcGIS Pro SDK, c # language is not on the menu so it will be the best there&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 11:05:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/fill-hole-in-polygon/m-p/1149037#M7862</guid>
      <dc:creator>DavidMrázek</dc:creator>
      <dc:date>2022-03-01T11:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Fill hole in polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/fill-hole-in-polygon/m-p/1149263#M7869</link>
      <description>&lt;P&gt;this might help:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/#topic72903.html" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/#topic72903.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 19:49:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/fill-hole-in-polygon/m-p/1149263#M7869</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2022-03-01T19:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Fill hole in polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/fill-hole-in-polygon/m-p/1149490#M7872</link>
      <description>&lt;P&gt;Thank you for helping to make the next move.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 09:56:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/fill-hole-in-polygon/m-p/1149490#M7872</guid>
      <dc:creator>DavidMrázek</dc:creator>
      <dc:date>2022-03-02T09:56:26Z</dc:date>
    </item>
  </channel>
</rss>

