<?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: Problems with Statistics in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/problems-with-statistics/m-p/614797#M3021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jake,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure why it is not working for you. I'd appreciate if you could contact Esri Tech Support and have them take a look at this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Aug 2013 19:56:39 GMT</pubDate>
    <dc:creator>TanuHoque</dc:creator>
    <dc:date>2013-08-13T19:56:39Z</dc:date>
    <item>
      <title>Problems with Statistics</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/problems-with-statistics/m-p/614790#M3014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;I have 3 problems with Statistics:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A temporary service you can try this out on: REMOVED&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1.) Statistics do not work with a version other than DEFAULT. So If I add a table in as version Office statistics do not work. If I add table in as version DEFAULT statistics do work. See Species_DEFAULT and Species_Office in map service above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.) If a versioned table is added to a feature service, it shows it supports statistics in the feature service but not in the map service. It in fact doesn't support then in either. I don't have a public example of this ATM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3.) Statistics do not work with views. I create a view in the sde (SQL Express) via ArcCatalog and add it to a map service as version DEFAULT. Rest map service shows it supports statistics in both DEFAULT and Office versions but statistics do not work. See vInspectionsMosSites_Office and vInspectionsMosSites_DEFAULT in map service above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A quick and easy statistic I am trying out:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Where: 1=1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Output Statistics: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"statisticType":"count",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"onStatisticField":"*",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"outStatisticFieldName":"Count"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there going to be support for versioned statistics in a future release? It would be a pain to be able to edit data and not see the changes in the statistics.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 19:58:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/problems-with-statistics/m-p/614790#M3014</guid>
      <dc:creator>RobChouinard</dc:creator>
      <dc:date>2013-02-20T19:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Statistics</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/problems-with-statistics/m-p/614791#M3015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;getting statistics from non-default version is supported for 10.2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in query stats request, do not use "*" as 'onStatisticField', instead provide e.g. OBJECTID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;try to avoid using anything that could potentially be a keyword or function name in the outStatisticFieldName. in you case, try something other than "count". Also, this is an optional property that you don't need to specify.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2013 16:58:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/problems-with-statistics/m-p/614791#M3015</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2013-05-28T16:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Statistics</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/problems-with-statistics/m-p/614792#M3016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for these tips. Is there an ETA for 10.2? Also does 10.2 allow statistics on views?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2013 17:13:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/problems-with-statistics/m-p/614792#M3016</guid>
      <dc:creator>RobChouinard</dc:creator>
      <dc:date>2013-05-28T17:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Statistics</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/problems-with-statistics/m-p/614793#M3017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Views should not be any different than FeatureClasses. It should be working with 10.1 too. Would you mind contact Esri Technical Support with reproducible steps/data? We'll be more than happy to look into the reason it is failing for you.&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, 29 May 2013 16:06:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/problems-with-statistics/m-p/614793#M3017</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2013-05-29T16:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Statistics</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/problems-with-statistics/m-p/614794#M3018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is an example of a failed query on a view: &lt;/SPAN&gt;&lt;A href="http://gis.citrusmosquito.org/arcgis_public/rest/services/Stats_Test/MapServer/4/query?where=1%3D1&amp;amp;text=&amp;amp;objectIds=&amp;amp;time=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;relationParam=&amp;amp;outFields=&amp;amp;returnGeometry=true&amp;amp;maxAllowableOffset=&amp;amp;geometryPrecision=&amp;amp;outSR=&amp;amp;returnIdsOnly=false&amp;amp;returnCountOnly=false&amp;amp;orderByFields=&amp;amp;groupByFieldsForStatistics=&amp;amp;outStatistics=%5B%7B%0D%0A+%22statisticType%22%3A%22count%22%2C%0D%0A+%22onStatisticField%22%3A%22ESRI_OID%22%2C%0D%0A+%22outStatisticFieldName%22%3A%22CountAll%22%0D%0A+%7D%5D&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;gdbVersion=&amp;amp;returnDistinctValues=false&amp;amp;f=html"&gt;http://gis.citrusmosquito.org/arcgis_public/rest/services/Stats_Test/MapServer/4/query?where=1%3D1&amp;amp;text=&amp;amp;objectIds=&amp;amp;time=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;relationParam=&amp;amp;outFields=&amp;amp;returnGeometry=true&amp;amp;maxAllowableOffset=&amp;amp;geometryPrecision=&amp;amp;outSR=&amp;amp;returnIdsOnly=false&amp;amp;returnCountOnly=false&amp;amp;orderByFields=&amp;amp;groupByFieldsForStatistics=&amp;amp;outStatistics=%5B%7B%0D%0A+%22statisticType%22%3A%22count%22%2C%0D%0A+%22onStatisticField%22%3A%22ESRI_OID%22%2C%0D%0A+%22outStatisticFieldName%22%3A%22CountAll%22%0D%0A+%7D%5D&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;gdbVersion=&amp;amp;returnDistinctValues=false&amp;amp;f=html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The layer &lt;/SPAN&gt;&lt;A href="http://gis.citrusmosquito.org/arcgis_public/rest/services/Stats_Test/MapServer/4"&gt;vInspectionsMosSites_DEFAULT&lt;/A&gt;&lt;SPAN&gt; shows it supports both Advanced Queries and Statistics.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 16:42:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/problems-with-statistics/m-p/614794#M3018</guid>
      <dc:creator>RobChouinard</dc:creator>
      <dc:date>2013-05-29T16:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Statistics</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/problems-with-statistics/m-p/614795#M3019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Rob,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm afraid the link to your map service will not help much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please contact Esri Tech Support -- they will probably look at your data etc. to find out where the problem lies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 15:04:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/problems-with-statistics/m-p/614795#M3019</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2013-05-30T15:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Statistics</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/problems-with-statistics/m-p/614796#M3020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have also found that the OutputStatistics in ArcGIS Server 10.11 will not work with map service layers that are created from feature classes that are in SDO geometry.&amp;nbsp; Will OutputStatistics work with SDO geometry in the future?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - Jake&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2013 18:57:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/problems-with-statistics/m-p/614796#M3020</guid>
      <dc:creator>JakeMatthys</dc:creator>
      <dc:date>2013-08-12T18:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Statistics</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/problems-with-statistics/m-p/614797#M3021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jake,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure why it is not working for you. I'd appreciate if you could contact Esri Tech Support and have them take a look at this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 19:56:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/problems-with-statistics/m-p/614797#M3021</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2013-08-13T19:56:39Z</dc:date>
    </item>
  </channel>
</rss>

