<?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: Statistics Filtered By Geometry in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/statistics-filtered-by-geometry/m-p/478860#M12369</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A statistics query will not work with a spatial filter in ArcGIS Server 10.1. We've added this function to the map service at 10.1 service pack 1. See the service pack announcement &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://downloads.esri.com/support/downloads/other_/189810.1_SP1_Announcement.pdf" rel="nofollow" target="_blank"&gt;here&lt;/A&gt;&lt;SPAN&gt;. The bug number is NIM083547.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Oct 2012 08:48:23 GMT</pubDate>
    <dc:creator>PeterYurkosky1</dc:creator>
    <dc:date>2012-10-02T08:48:23Z</dc:date>
    <item>
      <title>Statistics Filtered By Geometry</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/statistics-filtered-by-geometry/m-p/478858#M12367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to calculate statistics for a feature layer. I can get the statistics for the entire layer using the sample code as a guide no problem. My question is can I filter the query based on a geometry and calculate statistics on that result. I need to be able to calculate statistics on the spatially selected subset of the feature layer. When I add the query.Geometry=SomeGeometry to the query of the querytask i get no results. Is this even possible, if so how? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Private Sub OutStatisticsDataGrid_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Dim query As New Query()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; With query&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;STRONG&gt; .geometry = SomeGeometry&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; .GroupByFieldsForStatistics = New List(Of String) _&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; From {"SUB_REGION"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .OutStatistics = New List(Of OutStatistic) _&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; From&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {New OutStatistic() With&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .OnStatisticField = "pop2000",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .OutStatisticFieldName = "SubRegionPopulation",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .StatisticType = StatisticType.Sum&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; },&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; New OutStatistic() With&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .OnStatisticField = "sub_region",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .OutStatisticFieldName = "NumberOfStates",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .StatisticType = StatisticType.Count&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; End With&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; queryTask.ExecuteAsync(query)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 23:53:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/statistics-filtered-by-geometry/m-p/478858#M12367</guid>
      <dc:creator>DanBeatty</dc:creator>
      <dc:date>2012-10-01T23:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Statistics Filtered By Geometry</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/statistics-filtered-by-geometry/m-p/478859#M12368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is your issue due to the statistics or to your geometry?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In others words, if you make a simple spatial query with your geometry as filter and without any statistics, does your query return any features?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 06:55:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/statistics-filtered-by-geometry/m-p/478859#M12368</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2012-10-02T06:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Statistics Filtered By Geometry</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/statistics-filtered-by-geometry/m-p/478860#M12369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A statistics query will not work with a spatial filter in ArcGIS Server 10.1. We've added this function to the map service at 10.1 service pack 1. See the service pack announcement &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://downloads.esri.com/support/downloads/other_/189810.1_SP1_Announcement.pdf" rel="nofollow" target="_blank"&gt;here&lt;/A&gt;&lt;SPAN&gt;. The bug number is NIM083547.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 08:48:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/statistics-filtered-by-geometry/m-p/478860#M12369</guid>
      <dc:creator>PeterYurkosky1</dc:creator>
      <dc:date>2012-10-02T08:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Statistics Filtered By Geometry</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/statistics-filtered-by-geometry/m-p/478861#M12370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To answer the first question, yes if I don't return statistics the spatial filter does work. Thanks for the update glad to see this addressed in sp1.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 09:17:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/statistics-filtered-by-geometry/m-p/478861#M12370</guid>
      <dc:creator>DanBeatty</dc:creator>
      <dc:date>2012-10-02T09:17:26Z</dc:date>
    </item>
  </channel>
</rss>

