<?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: How to get features not getting intersected in arcobjects in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-features-not-getting-intersected-in/m-p/385135#M10208</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using the SpatialFilter object via the ISpatialFilter interface, you will need to define your own SpatialRelDescription, since the SpatialRel enumeration doesn't have the relationship you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can query the features that doesn't intersect the query geometry setting the SpatialRel property to &lt;STRONG&gt;esriSpatialRelRelation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and SpatialRelDescription property to "FF*FF****"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More information at: &lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/SpatialRelDescription_Property/00250000083w000000/" title="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/SpatialRelDescription_Property/00250000083w000000/"&gt;SpatialRelDescription on ArcObjects 10 .NET SDK Help&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 May 2015 11:00:30 GMT</pubDate>
    <dc:creator>JavierArtero</dc:creator>
    <dc:date>2015-05-08T11:00:30Z</dc:date>
    <item>
      <title>How to get features not getting intersected in arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-features-not-getting-intersected-in/m-p/385132#M10205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two feature classes. I'm intersecting both of them. I have to return features which does not intersect with the other.&lt;/P&gt;&lt;P&gt;Lets take an example.&lt;/P&gt;&lt;P&gt;I have two feature classes: villages and colleges. I'm intersecting both of them.&lt;/P&gt;&lt;P&gt;My query is "Select villages having population greater then 500 not having colleges."&lt;/P&gt;&lt;P&gt;So villages having population greater then is working finely but then it spatially search for colleges in those villages. &lt;/P&gt;&lt;P&gt;what all I need is to select villages which does not have colleges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciable. Thanx in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 13:03:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-features-not-getting-intersected-in/m-p/385132#M10205</guid>
      <dc:creator>akshayloya</dc:creator>
      <dc:date>2015-05-01T13:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to get features not getting intersected in arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-features-not-getting-intersected-in/m-p/385133#M10206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This can be accomplished in two steps using Select By Attribute and Select By Location in ArcMap.&amp;nbsp; First, select all villages having greater than 500.&amp;nbsp; Then, "remove from currently selected features..." the villages that have colleges in them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If scripting, something like:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.SelectLayerByAttribute_management("villages","NEW_SELECTION", "population &amp;gt; 500")
arcpy.SelectLayerByLocation_management("villages", "INTERSECT", "colleges", "", "REMOVE_FROM_SELECTION")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:42:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-features-not-getting-intersected-in/m-p/385133#M10206</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-11T17:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to get features not getting intersected in arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-features-not-getting-intersected-in/m-p/385134#M10207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joshua,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I needed solution for arcobjects. &lt;/P&gt;&lt;P&gt;Thanx for the reply though. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 05:03:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-features-not-getting-intersected-in/m-p/385134#M10207</guid>
      <dc:creator>akshayloya</dc:creator>
      <dc:date>2015-05-08T05:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to get features not getting intersected in arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-features-not-getting-intersected-in/m-p/385135#M10208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using the SpatialFilter object via the ISpatialFilter interface, you will need to define your own SpatialRelDescription, since the SpatialRel enumeration doesn't have the relationship you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can query the features that doesn't intersect the query geometry setting the SpatialRel property to &lt;STRONG&gt;esriSpatialRelRelation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and SpatialRelDescription property to "FF*FF****"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More information at: &lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/SpatialRelDescription_Property/00250000083w000000/" title="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/SpatialRelDescription_Property/00250000083w000000/"&gt;SpatialRelDescription on ArcObjects 10 .NET SDK Help&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 11:00:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-features-not-getting-intersected-in/m-p/385135#M10208</guid>
      <dc:creator>JavierArtero</dc:creator>
      <dc:date>2015-05-08T11:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get features not getting intersected in arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-features-not-getting-intersected-in/m-p/385136#M10209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Javier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 11:16:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-features-not-getting-intersected-in/m-p/385136#M10209</guid>
      <dc:creator>akshayloya</dc:creator>
      <dc:date>2015-05-08T11:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get features not getting intersected in arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-features-not-getting-intersected-in/m-p/385137#M10210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, right, my bad.&amp;nbsp; One of my streams aggregated your post, and I didn't pay close enough attention that you were focused on ArcObjects.&amp;nbsp; As &lt;A href="https://community.esri.com/migrated-users/33141"&gt;Javier Artero&lt;/A&gt;​ points out, a disjoint mask as he provides should get you on the right path.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 13:05:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-features-not-getting-intersected-in/m-p/385137#M10210</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-05-08T13:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to get features not getting intersected in arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-features-not-getting-intersected-in/m-p/385138#M10211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any Idea How can I improve performance of my spatial query?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 11:17:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-features-not-getting-intersected-in/m-p/385138#M10211</guid>
      <dc:creator>akshayloya</dc:creator>
      <dc:date>2015-05-12T11:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get features not getting intersected in arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-features-not-getting-intersected-in/m-p/385139#M10212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try using a spatial cache. This should take the data from the geodatabase and put it in memory, thus having a faster access since the queries won't be doing roundtrips to the file system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at: &lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//002500000831000000" title="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//002500000831000000"&gt;ISpatialCacheManager at ArcObjects Help for .NET developers&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 07:32:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-features-not-getting-intersected-in/m-p/385139#M10212</guid>
      <dc:creator>JavierArtero</dc:creator>
      <dc:date>2015-05-13T07:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get features not getting intersected in arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-features-not-getting-intersected-in/m-p/385140#M10213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Javier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to arcobjects.&lt;/P&gt;&lt;P&gt;May be a silly question but can you please tell me how to set the Cache extent. Like they have used in the link which you have provided.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 09:22:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-features-not-getting-intersected-in/m-p/385140#M10213</guid>
      <dc:creator>akshayloya</dc:creator>
      <dc:date>2015-05-20T09:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get features not getting intersected in arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-features-not-getting-intersected-in/m-p/385141#M10214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again Akshay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you call FillCache method in ISpatialCacheManager, you must specify the extent of the cache as a parameter.&lt;/P&gt;&lt;P&gt;You can pass any extent you want. &lt;/P&gt;&lt;P&gt;It could be the visible extent, which can be obtained via &lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//0012000001mz000000" title="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//0012000001mz000000"&gt;IActiveView.Extent at ArcObjects Help for .NET developers.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Or could be the map's area of interest (&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//001200000m8r000000" title="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//001200000m8r000000"&gt;IMap.AreaOfInterest at ArcObjects Help for .NET developers)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or whichever IEnvelope you create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be of help. Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 07:34:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-features-not-getting-intersected-in/m-p/385141#M10214</guid>
      <dc:creator>JavierArtero</dc:creator>
      <dc:date>2015-05-27T07:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get features not getting intersected in arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-features-not-getting-intersected-in/m-p/385142#M10215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the same tools in ArcObjects using the Geoprocessor managed assembly - for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using ESRI.ArcGIS.Geoprocessor;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using ESRI.ArcGIS.DataManagementTools;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp = new Geoprocessor();

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var tool = new SelectLayerByAttribute();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tool.in_layer_or_view = "villages";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tool.selection_type = "NEW_SELECTION";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tool.where_clause = "population &amp;gt; 500";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.Execute(tool, null);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:42:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-features-not-getting-intersected-in/m-p/385142#M10215</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2021-12-11T17:42:23Z</dc:date>
    </item>
  </channel>
</rss>

