<?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: Is there no esriSpatialRelEnum equivalent to 'if centroid falls within?' in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-there-no-esrispatialrelenum-equivalent-to-if/m-p/38426#M1014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to do the same in my ArcEngine application. Yesterday, I posted my question "&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;How to do 'Target layer(s) has their centroid in the source layer by ArcObjects&lt;/SPAN&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello JanDuske and GIS developers: Can you provide an code snippets or examples?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jan 2015 15:58:03 GMT</pubDate>
    <dc:creator>SteveXu</dc:creator>
    <dc:date>2015-01-15T15:58:03Z</dc:date>
    <item>
      <title>Is there no esriSpatialRelEnum equivalent to 'if centroid falls within?'</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-there-no-esrispatialrelenum-equivalent-to-if/m-p/38424#M1012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need a programatic way to select polygons whose centroid are inside a search polygon.&amp;nbsp; But looking up esriSpatialRelEnum in the help files doesn't seem to give that option.&amp;nbsp;&amp;nbsp; esriSpatialRelWithin and esriSpatialRelContains will not work in my case.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using ArcObjects, is there another way to do this spatial selection other than ISpatialFilter:SpatialRel = &amp;lt;one of the esriSpatialRelEnum values&amp;gt; ?????&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AZ&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 19:30:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/is-there-no-esrispatialrelenum-equivalent-to-if/m-p/38424#M1012</guid>
      <dc:creator>AZendel</dc:creator>
      <dc:date>2010-08-17T19:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is there no esriSpatialRelEnum equivalent to 'if centroid falls within?'</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-there-no-esrispatialrelenum-equivalent-to-if/m-p/38425#M1013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A straigth forward solution might be to do the query in two steps. First use a spatial filter with the EnvelopesIntersect filter type, that gives you a cursor to all the polygons which &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;could&lt;/SPAN&gt;&lt;SPAN&gt; have their centroid inside the query Polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then in step two you take every Polygon you get as a result from step one and run a second spatial filter to check if the current polygons centroid lies within the polygon in question. Maybe not very efficient to use a spatial filter for each polygon-polygon pair, probably the IHitTest result bRightSide could be used for step two, if your polygons are not complex (holes...)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 06:08:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/is-there-no-esrispatialrelenum-equivalent-to-if/m-p/38425#M1013</guid>
      <dc:creator>JanDuske</dc:creator>
      <dc:date>2010-08-18T06:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is there no esriSpatialRelEnum equivalent to 'if centroid falls within?'</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-there-no-esrispatialrelenum-equivalent-to-if/m-p/38426#M1014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to do the same in my ArcEngine application. Yesterday, I posted my question "&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;How to do 'Target layer(s) has their centroid in the source layer by ArcObjects&lt;/SPAN&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello JanDuske and GIS developers: Can you provide an code snippets or examples?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 15:58:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/is-there-no-esrispatialrelenum-equivalent-to-if/m-p/38426#M1014</guid>
      <dc:creator>SteveXu</dc:creator>
      <dc:date>2015-01-15T15:58:03Z</dc:date>
    </item>
  </channel>
</rss>

