<?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: Geoprocessor Statistics paramater in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocessor-statistics-paramater/m-p/491795#M13240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The documentation on the parameters for geoprocessing tools has never been very good. Usually, when I run into a problem with the syntax, the first thing I'll do is to manually run the tool in ArcMap. I'll open the Results dialog and examine the messages for the Executing statement. This is the best way to figure out how the parameters should be entered for the different properties.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Sep 2013 18:49:30 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2013-09-24T18:49:30Z</dc:date>
    <item>
      <title>Geoprocessor Statistics paramater</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocessor-statistics-paramater/m-p/491793#M13238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00080000001z000000" rel="nofollow" target="_blank"&gt;Statistics geoprocessor tool&lt;/A&gt;&lt;SPAN&gt; one of the parameters is the "statistics_fields". It calls for the fields you want to get statistics on as well as the type of statistic. In pyton, it looks like this (see 3rd param):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.Statistics_analysis("futrds", "C:/output/output.gdb/stats", [["Shape_Length", "SUM"]], "NM")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is, how do I set up this parameter in .NET?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Geoprocessor GP = new Geoprocessor();&amp;nbsp; Statistics stats = new Statistics(); stats.in_table = @"C:\Temp\Test\myRight.shp"; stats.out_table = @"C:\Temp\test.dbf"; stats.statistics_fields = "[['J_Fld','COUNT']]";&amp;nbsp; GP.Execute(stats, null);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried sending it strings formatted in several different ways, an array like the one in python, and a IVariantArray with no luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 16:24:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocessor-statistics-paramater/m-p/491793#M13238</guid>
      <dc:creator>JohnStephens</dc:creator>
      <dc:date>2013-09-18T16:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessor Statistics paramater</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocessor-statistics-paramater/m-p/491794#M13239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So, I went ahead and contacted ESRI support and figured out how to solve this problem. The parameter is set like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;stats.statistics_fields = "J_Fld COUNT"; stats.case_field = "J_Fld";&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 18:27:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocessor-statistics-paramater/m-p/491794#M13239</guid>
      <dc:creator>JohnStephens</dc:creator>
      <dc:date>2013-09-24T18:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessor Statistics paramater</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocessor-statistics-paramater/m-p/491795#M13240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The documentation on the parameters for geoprocessing tools has never been very good. Usually, when I run into a problem with the syntax, the first thing I'll do is to manually run the tool in ArcMap. I'll open the Results dialog and examine the messages for the Executing statement. This is the best way to figure out how the parameters should be entered for the different properties.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 18:49:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocessor-statistics-paramater/m-p/491795#M13240</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2013-09-24T18:49:30Z</dc:date>
    </item>
  </channel>
</rss>

