<?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 when TopologicalOperator.Difference Exception from HRESULT: 0x80040215 in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/when-topologicaloperator-difference-exception-from/m-p/1084481#M20359</link>
    <description>&lt;P&gt;If SelectionCount &amp;lt;&amp;gt; 0 Then&lt;BR /&gt;pTopologicalOperator = CType(WALL_Feature.Shape, ITopologicalOperator)&lt;BR /&gt;pTopologicalOperator.Simplify()&lt;BR /&gt;While OtherFea IsNot Nothing&lt;BR /&gt;Dim LayerName As String = OtherFea.Value(OtherFea.Fields.FindField("Layer")).ToString.ToUpper&lt;BR /&gt;If LayerName &amp;lt;&amp;gt; "WALL" Then&lt;BR /&gt;Dim oPolygon As IPolygon&lt;BR /&gt;oPolygon = OtherFea.ShapeCopy&lt;BR /&gt;oPolygon.SimplifyPreserveFromTo()&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;pTopologicalOperator = pTopologicalOperator.Difference(oPolygon) &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;(here&amp;nbsp;Exception from HRESULT: 0x80040215 )&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;End if&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jul 2021 16:30:09 GMT</pubDate>
    <dc:creator>syedabdulrafee</dc:creator>
    <dc:date>2021-07-30T16:30:09Z</dc:date>
    <item>
      <title>when TopologicalOperator.Difference Exception from HRESULT: 0x80040215</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/when-topologicaloperator-difference-exception-from/m-p/1084481#M20359</link>
      <description>&lt;P&gt;If SelectionCount &amp;lt;&amp;gt; 0 Then&lt;BR /&gt;pTopologicalOperator = CType(WALL_Feature.Shape, ITopologicalOperator)&lt;BR /&gt;pTopologicalOperator.Simplify()&lt;BR /&gt;While OtherFea IsNot Nothing&lt;BR /&gt;Dim LayerName As String = OtherFea.Value(OtherFea.Fields.FindField("Layer")).ToString.ToUpper&lt;BR /&gt;If LayerName &amp;lt;&amp;gt; "WALL" Then&lt;BR /&gt;Dim oPolygon As IPolygon&lt;BR /&gt;oPolygon = OtherFea.ShapeCopy&lt;BR /&gt;oPolygon.SimplifyPreserveFromTo()&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;pTopologicalOperator = pTopologicalOperator.Difference(oPolygon) &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;(here&amp;nbsp;Exception from HRESULT: 0x80040215 )&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;End if&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2021 16:30:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/when-topologicaloperator-difference-exception-from/m-p/1084481#M20359</guid>
      <dc:creator>syedabdulrafee</dc:creator>
      <dc:date>2021-07-30T16:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: when TopologicalOperator.Difference Exception from HRESULT: 0x80040215</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/when-topologicaloperator-difference-exception-from/m-p/1089221#M20365</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Your geometries have different spatial references.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;E_GEOMETRY_INCONSISTANT_SPATIAL_REFERENCE&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;533&lt;/TD&gt;&lt;TD&gt;(0x80040215) Input geometries do not have same spatial reference.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/enterprise-sdk/api-reference/net/esriGeometry/esriGeometryError/" target="_self"&gt;https://developers.arcgis.com/enterprise-sdk/api-reference/net/esriGeometry/esriGeometryError/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 08:33:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/when-topologicaloperator-difference-exception-from/m-p/1089221#M20365</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2021-08-16T08:33:22Z</dc:date>
    </item>
  </channel>
</rss>

