<?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: Get First Feature from Point Search in GeoFeatureLayer.snippet in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-first-feature-from-point-search-in/m-p/514519#M13864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it works.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jun 2010 15:03:43 GMT</pubDate>
    <dc:creator>ThomasWaenke</dc:creator>
    <dc:date>2010-06-22T15:03:43Z</dc:date>
    <item>
      <title>Get First Feature from Point Search in GeoFeatureLayer.snippet</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-first-feature-from-point-search-in/m-p/514517#M13862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need a function that returns a feature that is selected by a mouse click. The "Get First Feature from Point Search in GeoFeatureLayer" Snippet (C#) that is supplied with ArcGIS returns a feature when the envelope of the search point intersects the envelope of the target. The problem is that a long line feature can have a large envelope that is always intersected. As a result I always get this line even when the mouse click is far away.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to get only the feature that "really" intersects i.e. the line that I clicked on. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thomas Waenke&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 10:25:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-first-feature-from-point-search-in/m-p/514517#M13862</guid>
      <dc:creator>ThomasWaenke</dc:creator>
      <dc:date>2010-06-18T10:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get First Feature from Point Search in GeoFeatureLayer.snippet</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-first-feature-from-point-search-in/m-p/514518#M13863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The key is the type of search being done.&amp;nbsp; That is defined by the spatial relationship in the spatial filter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Replace this line&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;spatialFilter.SpatialRel = ESRI.ArcGIS.Geodatabase.esriSpatialRelEnum.esriSpatialRelEnvelopeIntersects&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;with &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;spatialFilter.SpatialRel = ESRI.ArcGIS.Geodatabase.esriSpatialRelEnum.esriSpatialRelIntersects&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 19:27:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-first-feature-from-point-search-in/m-p/514518#M13863</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2010-06-18T19:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get First Feature from Point Search in GeoFeatureLayer.snippet</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-first-feature-from-point-search-in/m-p/514519#M13864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it works.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 15:03:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-first-feature-from-point-search-in/m-p/514519#M13864</guid>
      <dc:creator>ThomasWaenke</dc:creator>
      <dc:date>2010-06-22T15:03:43Z</dc:date>
    </item>
  </channel>
</rss>

