AnsweredAssumed Answered

Using OutStatistics with Dynamic Layer

Question asked by citegestion on Jan 6, 2015
Latest reply on Jan 7, 2015 by citegestion

Hello,

we're trying to get statistics on dynamic layer, but it seems not work.

We always get an empty result while executing the following querytask.

 

Is there any other way to get statistics on dynamic layer ?

 

Dim queryTask = New QueryTask(New Uri(String.Concat(Me.CarteView.MapServicePatrimoine.ServiceUri, "/dynamicLayer/99")))

Dim query = New Query("1=1") With {

                .GroupByFieldsForStatistics = myUniqueValueRenderer.Fields,

                .OutStatistics = myUniqueValueRenderer.Fields.

                                    Select(Function(field) New OutStatistic(

                                                                field,

                                                                String.Format("{0}_{1}", StatisticType.Count.GetNom, field),

                                                                StatisticType.Count

                                                            )

                                    ).

                                    ToArray,

                .Source = rendererTaskParameters.Source

            }

Dim queryResult = Await queryTask.ExecuteAsync(query)

 

Thanks for your answer,

 

Best Regards.

Outcomes