<?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: Check intersection with a feature class in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/check-intersection-with-a-feature-class/m-p/75176#M2015</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;ArcGIS Server&lt;/SPAN&gt;&lt;SPAN&gt; is not involved in this process, it just exists in our environment and is accessed by another application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, it is &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;IFeatureWorkspace&lt;/SPAN&gt;&lt;SPAN&gt; and it references the SDE. The &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;OpenFeatureClass&lt;/SPAN&gt;&lt;SPAN&gt; call isn't that slow but we're calling it for each of our tens of layers, and it accumulates to few tens of seconds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So does a remote &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;OpenFeatureClass&lt;/SPAN&gt;&lt;SPAN&gt; should be instant as well?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Sep 2013 07:14:22 GMT</pubDate>
    <dc:creator>NANA</dc:creator>
    <dc:date>2013-09-19T07:14:22Z</dc:date>
    <item>
      <title>Check intersection with a feature class</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/check-intersection-with-a-feature-class/m-p/75174#M2013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an ArcObjects code that is checking whether a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;GeometryBag&lt;/SPAN&gt;&lt;SPAN&gt; is intersecting with a list of feature classes (few tens of them) that are stored in SDE (everything is version 10.0).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It does this by opening a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;FeatureClass&lt;/SPAN&gt;&lt;SPAN&gt; and then calling &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Search&lt;/SPAN&gt;&lt;SPAN&gt; on it, and then calling &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;NextFeature&lt;/SPAN&gt;&lt;SPAN&gt; on the returned cursor, and returning &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;true&lt;/SPAN&gt;&lt;SPAN&gt; or &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;false&lt;/SPAN&gt;&lt;SPAN&gt; based on its result (the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;GeometryBag&lt;/SPAN&gt;&lt;SPAN&gt; is small, so it won't intersect with a lot of features).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm seeing that the performance of this method isn't great, with &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;OpenFeatureClass&lt;/SPAN&gt;&lt;SPAN&gt; taking the most time. I wonder if it's reasonable that it's not fast, because &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;OpenFeatureClass&lt;/SPAN&gt;&lt;SPAN&gt; allows some advanced operations on the feature class after it's called, and whether there's a faster way of doing this in ArcObjects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have an ArcGis Server on our environment so I guess running Query against map services exposing the needed feature classes is also a reasonable option and may be faster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Aug 2013 19:17:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/check-intersection-with-a-feature-class/m-p/75174#M2013</guid>
      <dc:creator>NANA</dc:creator>
      <dc:date>2013-08-24T19:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Check intersection with a feature class</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/check-intersection-with-a-feature-class/m-p/75175#M2014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I assume you are using the IFeatureWorkspace interface to open the FeatureClass? This is pretty much instant in my experience, which suggests the problem is at the ArcGIS Server end. I don't know much about ArcGIS server but why not try your code to open a FeatureClass from a local file GeoDatabase. If your code executes faster then this would suggest a network issue or a bottle neck at the server end. May be someone else can offer advice?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 10:38:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/check-intersection-with-a-feature-class/m-p/75175#M2014</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2013-09-02T10:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Check intersection with a feature class</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/check-intersection-with-a-feature-class/m-p/75176#M2015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;ArcGIS Server&lt;/SPAN&gt;&lt;SPAN&gt; is not involved in this process, it just exists in our environment and is accessed by another application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, it is &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;IFeatureWorkspace&lt;/SPAN&gt;&lt;SPAN&gt; and it references the SDE. The &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;OpenFeatureClass&lt;/SPAN&gt;&lt;SPAN&gt; call isn't that slow but we're calling it for each of our tens of layers, and it accumulates to few tens of seconds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So does a remote &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;OpenFeatureClass&lt;/SPAN&gt;&lt;SPAN&gt; should be instant as well?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 07:14:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/check-intersection-with-a-feature-class/m-p/75176#M2015</guid>
      <dc:creator>NANA</dc:creator>
      <dc:date>2013-09-19T07:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Check intersection with a feature class</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/check-intersection-with-a-feature-class/m-p/75177#M2016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The &lt;SPAN style="font-style:italic;"&gt;ArcGIS Server&lt;/SPAN&gt; is not involved in this process, it just exists in our environment and is accessed by another application.&lt;BR /&gt;Yes, it is &lt;SPAN style="font-style:italic;"&gt;IFeatureWorkspace&lt;/SPAN&gt; and it references the SDE. The &lt;SPAN style="font-style:italic;"&gt;OpenFeatureClass&lt;/SPAN&gt; call isn't that slow but we're calling it for each of our tens of layers, and it accumulates to few tens of seconds.&lt;BR /&gt;So does a remote &lt;SPAN style="font-style:italic;"&gt;OpenFeatureClass&lt;/SPAN&gt; should be instant as well?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I run several processes that run through 50-60 feature classes and one of the fastest parts is opening the FCs.&amp;nbsp; I could probably loop through and open all of them in under 5 seconds.&amp;nbsp; I ran a process just earlier today that did that and deleted a field from each in 19 seconds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you using a profiler to clock your code?&amp;nbsp; If not, how are you finding that's the slowest part?&amp;nbsp; I would think the intersections is what is eating up processing.&amp;nbsp; Maybe try opening more than one thread?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 19:10:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/check-intersection-with-a-feature-class/m-p/75177#M2016</guid>
      <dc:creator>JohnStephens</dc:creator>
      <dc:date>2013-09-19T19:10:30Z</dc:date>
    </item>
  </channel>
</rss>

