<?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: Self-Intersecting Detect and Fix using SimplifyAsFeature in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/self-intersecting-detect-and-fix-using/m-p/1037196#M6353</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the GeometryEngine.Instance.IsSimpleAsFeature method to determine whether the feature is "simple".&amp;nbsp; (ie does not have self-intersections).&amp;nbsp; If the feature is not simple then you would call GeometryEngine.Instance.SimplifyAsFeature to simplify it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://prodev.arcgis.com/en/pro-app/latest/sdk/api-reference/#topic15566.html" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/#topic15566.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Geometry Concepts page has a section describing these two methods&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ArcGIS/arcgis-pro-sdk/wiki/ProConcepts-Geometry#simplifyasfeature-and-issimpleasfeature" target="_blank"&gt;https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Geometry#simplifyasfeature-and-issimpleasfeature&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Narelle&lt;/P&gt;</description>
    <pubDate>Tue, 16 Mar 2021 16:34:53 GMT</pubDate>
    <dc:creator>NarelleChedzey</dc:creator>
    <dc:date>2021-03-16T16:34:53Z</dc:date>
    <item>
      <title>Self-Intersecting Detect and Fix using SimplifyAsFeature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/self-intersecting-detect-and-fix-using/m-p/1037182#M6352</link>
      <description>&lt;P&gt;I have discovered that some of the polygons that users are bringing into my system and creating a new object from have self intersections.&amp;nbsp; I need to be able to first detect if a self intersection exists, and if it does then repair it automatically.&lt;/P&gt;&lt;P&gt;Is&amp;nbsp;SimplifyAsFeature the best method to do this with for both detection and fixing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;protected Geometry FixSelfIntersections(Geometry inGeometry)
        {            
            //I want to see if it has self intersections FIRST??
            bool isSelfIntersecting  = NEED TO FIND FIRST??;
            
            //Fix if it has intersections
            if (isSelfIntersecting)
                {
                    inGeometry = GeometryEngine.Instance.SimplifyAsFeature(inGeometry, true);                    
                }
            
            return inGeometry;
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 16:04:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/self-intersecting-detect-and-fix-using/m-p/1037182#M6352</guid>
      <dc:creator>MKa</dc:creator>
      <dc:date>2021-03-16T16:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Self-Intersecting Detect and Fix using SimplifyAsFeature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/self-intersecting-detect-and-fix-using/m-p/1037196#M6353</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the GeometryEngine.Instance.IsSimpleAsFeature method to determine whether the feature is "simple".&amp;nbsp; (ie does not have self-intersections).&amp;nbsp; If the feature is not simple then you would call GeometryEngine.Instance.SimplifyAsFeature to simplify it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://prodev.arcgis.com/en/pro-app/latest/sdk/api-reference/#topic15566.html" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/#topic15566.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Geometry Concepts page has a section describing these two methods&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ArcGIS/arcgis-pro-sdk/wiki/ProConcepts-Geometry#simplifyasfeature-and-issimpleasfeature" target="_blank"&gt;https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Geometry#simplifyasfeature-and-issimpleasfeature&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Narelle&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 16:34:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/self-intersecting-detect-and-fix-using/m-p/1037196#M6353</guid>
      <dc:creator>NarelleChedzey</dc:creator>
      <dc:date>2021-03-16T16:34:53Z</dc:date>
    </item>
  </channel>
</rss>

