<?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 Error when calling IIndexQuery2.Within in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/error-when-calling-iindexquery2-within/m-p/164800#M4283</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using a street centerline feature class and a polygon feature class, I am taking the shape of a street polyline and attempting to get all of the polygon shapes that this polyline is within.&amp;nbsp; I am using IIndexQuery2.Within(feature.shape), and I DO have an index built on the polygon layer. When I pass in different polyline shapes, sometimes I get results and sometime an error is thrown. The error is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Exception: System.Runtime.InteropServices.COMException (0x80041538): Exception from HRESULT: 0x80041538&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.Carto.FeatureIndexClass.IIndexQuery2_get_Within(IGeometry pShape)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked for null geometries in the polygon layer and there were none. What else could be causing this error?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2014 16:37:54 GMT</pubDate>
    <dc:creator>MelodyMeinhardt</dc:creator>
    <dc:date>2014-06-12T16:37:54Z</dc:date>
    <item>
      <title>Error when calling IIndexQuery2.Within</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/error-when-calling-iindexquery2-within/m-p/164800#M4283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using a street centerline feature class and a polygon feature class, I am taking the shape of a street polyline and attempting to get all of the polygon shapes that this polyline is within.&amp;nbsp; I am using IIndexQuery2.Within(feature.shape), and I DO have an index built on the polygon layer. When I pass in different polyline shapes, sometimes I get results and sometime an error is thrown. The error is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Exception: System.Runtime.InteropServices.COMException (0x80041538): Exception from HRESULT: 0x80041538&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.Carto.FeatureIndexClass.IIndexQuery2_get_Within(IGeometry pShape)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked for null geometries in the polygon layer and there were none. What else could be causing this error?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 16:37:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/error-when-calling-iindexquery2-within/m-p/164800#M4283</guid>
      <dc:creator>MelodyMeinhardt</dc:creator>
      <dc:date>2014-06-12T16:37:54Z</dc:date>
    </item>
  </channel>
</rss>

