<?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 Tool GetCount does not return exact feature count in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/tool-getcount-does-not-return-exact-feature-count/m-p/459535#M12445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone&lt;/P&gt;&lt;P&gt;I want to count features in a featureclass, and I found in the document that function &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/get-count.htm"&gt;GetCount can r&lt;/A&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/get-count.htm"&gt;eturn the total number of rows for a table&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After runing this tool,&amp;nbsp;it turned out that this function return maximum number of ObjectID, not feature count. If in the featureclass, there is a leap between ObjectID (i.e ObjectId is not continuous as in my case), the result wil not exact.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does&amp;nbsp;anyone have any ideas to solve this problem?&amp;nbsp;or does ESRI have another function to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jun 2020 08:30:34 GMT</pubDate>
    <dc:creator>NguyenTuan</dc:creator>
    <dc:date>2020-06-29T08:30:34Z</dc:date>
    <item>
      <title>Tool GetCount does not return exact feature count</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/tool-getcount-does-not-return-exact-feature-count/m-p/459535#M12445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone&lt;/P&gt;&lt;P&gt;I want to count features in a featureclass, and I found in the document that function &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/get-count.htm"&gt;GetCount can r&lt;/A&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/get-count.htm"&gt;eturn the total number of rows for a table&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After runing this tool,&amp;nbsp;it turned out that this function return maximum number of ObjectID, not feature count. If in the featureclass, there is a leap between ObjectID (i.e ObjectId is not continuous as in my case), the result wil not exact.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does&amp;nbsp;anyone have any ideas to solve this problem?&amp;nbsp;or does ESRI have another function to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2020 08:30:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/tool-getcount-does-not-return-exact-feature-count/m-p/459535#M12445</guid>
      <dc:creator>NguyenTuan</dc:creator>
      <dc:date>2020-06-29T08:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Tool GetCount does not return exact feature count</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/tool-getcount-does-not-return-exact-feature-count/m-p/459536#M12446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nguyen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You&amp;nbsp;can use IFeatureClass.FeatureCount() method to get the number of features in a feature class -&amp;nbsp;ArcObjects SDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide more information on the environment? Are you looking for ArcGIS Pro SDK?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is ArcGIS Pro SDK, then GetCount should work as per the documentation. Please refer the following link which might help you&amp;nbsp;&lt;A href="https://community.esri.com/thread/206446-how-can-i-get-the-feature-count-of-a-layer"&gt;https://community.esri.com/thread/206446-how-can-i-get-the-feature-count-of-a-layer&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2020 02:54:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/tool-getcount-does-not-return-exact-feature-count/m-p/459536#M12446</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-07-02T02:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Tool GetCount does not return exact feature count</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/tool-getcount-does-not-return-exact-feature-count/m-p/459537#M12447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank&amp;nbsp;you, Ravi&lt;/P&gt;&lt;P&gt;I am running ArcGIS for Desktop 10.3.&amp;nbsp;Actually, I am finding a&amp;nbsp;geoprocessing tool to count features because&amp;nbsp;of ArcObjects SDK license.&lt;/P&gt;&lt;P&gt;Do you have any&amp;nbsp;recommend for me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2020 03:59:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/tool-getcount-does-not-return-exact-feature-count/m-p/459537#M12447</guid>
      <dc:creator>NguyenTuan</dc:creator>
      <dc:date>2020-07-29T03:59:44Z</dc:date>
    </item>
  </channel>
</rss>

