<?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 Spatial Queries in ArcEngine (and ArcReader) in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/spatial-queries-in-arcengine-and-arcreader/m-p/580150#M15681</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm executing a spatial query using the geometry of a polygon feature using the esriSpatialRelWithin spatial relation to find out what feature it is contained within in another polygon layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In ArcEngine I am getting 1 result and in ArcReaderControl I am getting 0 results - on the same map, same feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then tried using esriSpatialRelIntersects and I get 4 results in both ArcReader and ArcEngine.&amp;nbsp; I take this to mean that my query geometry shares borders (because there are three other polygons that border the feature in the layer I am querying).&amp;nbsp; But if that is the case why is ArcEngine returning 1 result when I use esriSpatialRelWithin?&amp;nbsp; Shouldn't it return 0 results like the ArcReaderControl?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The next thing I tried was using eriSpatialRelRelation (in ArcEngine) and I set the relation description to TF**F**** which I took off this page (&lt;/SPAN&gt;&lt;A href="http://resources.esri.com/help/9.3/ArcGISDesktop/ArcObjects/esriGeoDatabase/ISpatialFilter_SpatialRelDescription.htm"&gt;http://resources.esri.com/help/9.3/ArcGISDesktop/ArcObjects/esriGeoDatabase/ISpatialFilter_SpatialRelDescription.htm&lt;/A&gt;&lt;SPAN&gt;) which is supposed to be the equivalent of esriSpatialRelWithin and it returns 0 results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone provide some insight into this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jun 2011 13:53:17 GMT</pubDate>
    <dc:creator>TomHart</dc:creator>
    <dc:date>2011-06-14T13:53:17Z</dc:date>
    <item>
      <title>Spatial Queries in ArcEngine (and ArcReader)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/spatial-queries-in-arcengine-and-arcreader/m-p/580150#M15681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm executing a spatial query using the geometry of a polygon feature using the esriSpatialRelWithin spatial relation to find out what feature it is contained within in another polygon layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In ArcEngine I am getting 1 result and in ArcReaderControl I am getting 0 results - on the same map, same feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then tried using esriSpatialRelIntersects and I get 4 results in both ArcReader and ArcEngine.&amp;nbsp; I take this to mean that my query geometry shares borders (because there are three other polygons that border the feature in the layer I am querying).&amp;nbsp; But if that is the case why is ArcEngine returning 1 result when I use esriSpatialRelWithin?&amp;nbsp; Shouldn't it return 0 results like the ArcReaderControl?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The next thing I tried was using eriSpatialRelRelation (in ArcEngine) and I set the relation description to TF**F**** which I took off this page (&lt;/SPAN&gt;&lt;A href="http://resources.esri.com/help/9.3/ArcGISDesktop/ArcObjects/esriGeoDatabase/ISpatialFilter_SpatialRelDescription.htm"&gt;http://resources.esri.com/help/9.3/ArcGISDesktop/ArcObjects/esriGeoDatabase/ISpatialFilter_SpatialRelDescription.htm&lt;/A&gt;&lt;SPAN&gt;) which is supposed to be the equivalent of esriSpatialRelWithin and it returns 0 results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone provide some insight into this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2011 13:53:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/spatial-queries-in-arcengine-and-arcreader/m-p/580150#M15681</guid>
      <dc:creator>TomHart</dc:creator>
      <dc:date>2011-06-14T13:53:17Z</dc:date>
    </item>
  </channel>
</rss>

