<?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: A feature overlapped with another feature in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/a-feature-overlapped-with-another-feature/m-p/509657#M13726</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ken:&amp;nbsp; Thanks for your code.&amp;nbsp; Could you tell me what is the data type of&amp;nbsp; &lt;CODE&gt;pOverlapGeometry&amp;nbsp; since I need to convert your VB into c#.&amp;nbsp; Thanks.&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jun 2017 18:55:21 GMT</pubDate>
    <dc:creator>ShaningYu</dc:creator>
    <dc:date>2017-06-29T18:55:21Z</dc:date>
    <item>
      <title>A feature overlapped with another feature</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/a-feature-overlapped-with-another-feature/m-p/509652#M13721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my ArcObjects program, I need to check where a polygon feature (named f_A here) is included / overlapped with another polygon feature (named f_B hear).&amp;nbsp; Is there an ArcObjects method for the this check-up?&amp;nbsp; Thanks. &amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 17:25:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/a-feature-overlapped-with-another-feature/m-p/509652#M13721</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2017-06-29T17:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: A feature overlapped with another feature</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/a-feature-overlapped-with-another-feature/m-p/509653#M13722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shaning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would be really easy with arcpy, but from what I can tell this article might help you out with how to use the Intersect tool with ArcObjects geoprocessing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.esri.com/news/arcuser/1207/files/gp_arcobjects.pdf" title="https://www.esri.com/news/arcuser/1207/files/gp_arcobjects.pdf"&gt;https://www.esri.com/news/arcuser/1207/files/gp_arcobjects.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, the &lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//002m000003vs000000"&gt;ITopologicalOperator.Intersect&lt;/A&gt; method could be used to determine if there is overlap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Micah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 18:02:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/a-feature-overlapped-with-another-feature/m-p/509653#M13722</guid>
      <dc:creator>MicahBabinski</dc:creator>
      <dc:date>2017-06-29T18:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: A feature overlapped with another feature</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/a-feature-overlapped-with-another-feature/m-p/509654#M13723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="https://desktop.arcgis.com/en/arcobjects/latest/java/c5cac8ef-fd09-4f83-8c20-21ec9f9b9130.htm" title="https://desktop.arcgis.com/en/arcobjects/latest/java/c5cac8ef-fd09-4f83-8c20-21ec9f9b9130.htm"&gt;How to Execute Spatial Queries—ArcObjects 10.4 Help for Java | ArcGIS for Desktop&lt;/A&gt; .&amp;nbsp; The article is for Java, but the concepts translate to .NET.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 18:20:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/a-feature-overlapped-with-another-feature/m-p/509654#M13723</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-06-29T18:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: A feature overlapped with another feature</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/a-feature-overlapped-with-another-feature/m-p/509655#M13724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 18:28:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/a-feature-overlapped-with-another-feature/m-p/509655#M13724</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2017-06-29T18:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: A feature overlapped with another feature</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/a-feature-overlapped-with-another-feature/m-p/509656#M13725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's how I determine if a polygon overlaps another polygon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;pTopoOp &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; pFeature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Shape
Dim pInGeometry As ESRI&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGIS&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Geometry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;IGeometry5
pInGeometry &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; pOtherFeature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Shape
If pInGeometry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Dimension &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ESRI&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGIS&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Geometry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;esriGeometryDimension&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;esriGeometry2Dimension Then 'check &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; the feature &lt;SPAN class="keyword token"&gt;is&lt;/SPAN&gt; a polygon
&amp;nbsp; pOverlapGeometry &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; pTopoOp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Intersect&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pInGeometry&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ESRI&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGIS&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Geometry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;esriGeometryDimension&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;esriGeometry2Dimension&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp; If Not pOverlapGeometry Is Nothing And Not pOverlapGeometry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;IsEmpty Then
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;'you'&lt;/SPAN&gt;ve got an overlapping polygon
&amp;nbsp; End If
End If&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:19:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/a-feature-overlapped-with-another-feature/m-p/509656#M13725</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-11T22:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: A feature overlapped with another feature</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/a-feature-overlapped-with-another-feature/m-p/509657#M13726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ken:&amp;nbsp; Thanks for your code.&amp;nbsp; Could you tell me what is the data type of&amp;nbsp; &lt;CODE&gt;pOverlapGeometry&amp;nbsp; since I need to convert your VB into c#.&amp;nbsp; Thanks.&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 18:55:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/a-feature-overlapped-with-another-feature/m-p/509657#M13726</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2017-06-29T18:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: A feature overlapped with another feature</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/a-feature-overlapped-with-another-feature/m-p/509658#M13727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's an &lt;A href="http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#IGeometry5.htm"&gt;IGeometry5&lt;/A&gt; object&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 19:29:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/a-feature-overlapped-with-another-feature/m-p/509658#M13727</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2017-06-29T19:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: A feature overlapped with another feature</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/a-feature-overlapped-with-another-feature/m-p/509659#M13728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before I sent my last message to you, I did try but got error:&lt;/P&gt;&lt;P&gt;'ESRI.ArcGIS.Geometry.IGeometry5' does not contain a definition for 'Intersect' and no extension method 'Intersect' accepting a first argument of type 'ESRI.ArcGIS.Geometry.IGeometry5' could be found (are you missing a using directive or an assembly reference?) .&lt;/P&gt;&lt;P&gt;My code is below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bool feature_In_Other(IFeature f1, IFeature f2)&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IGeometry g = (IGeometry)f1.ShapeCopy;&amp;nbsp; // also tried &amp;nbsp; IGeometry5 g = (IGeometry5)f1.ShapeCopy;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ESRI.ArcGIS.Geometry.IGeometry5 pInGeometry = (ESRI.ArcGIS.Geometry.IGeometry5)f2.ShapeCopy;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (pInGeometry.Dimension == ESRI.ArcGIS.Geometry.esriGeometryDimension.esriGeometry2Dimension)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (f1.ShapeCopy.GeometryType == esriGeometryType.esriGeometryPolygon)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ESRI.ArcGIS.Geometry.IGeometry5 pOverlapGeometry = g.Intersect(pInGeometry, ESRI.ArcGIS.Geometry.esriGeometryDimension.esriGeometry2Dimension);&amp;nbsp; // Got error on this line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;What's wrong in my code?&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 19:39:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/a-feature-overlapped-with-another-feature/m-p/509659#M13728</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2017-06-29T19:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: A feature overlapped with another feature</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/a-feature-overlapped-with-another-feature/m-p/509660#M13729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Intersect method is called on the ITopologyOperator object. In my code, that's what the pTopoOp is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim pTopoOp As ESRI.ArcGIS.Geometry.ITopologicalOperator&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 20:01:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/a-feature-overlapped-with-another-feature/m-p/509660#M13729</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2017-06-29T20:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: A feature overlapped with another feature</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/a-feature-overlapped-with-another-feature/m-p/509661#M13730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ken:&amp;nbsp; I revised the code per your feedback. The error was gone.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 11:45:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/a-feature-overlapped-with-another-feature/m-p/509661#M13730</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2017-06-30T11:45:41Z</dc:date>
    </item>
  </channel>
</rss>

