POST
|
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.
... View more
10-02-2012
02:17 AM
|
0
|
0
|
256
|
POST
|
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? Private Sub OutStatisticsDataGrid_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs) Dim query As New Query() With query .geometry = SomeGeometry .GroupByFieldsForStatistics = New List(Of String) _ From {"SUB_REGION"} .OutStatistics = New List(Of OutStatistic) _ From {New OutStatistic() With { .OnStatisticField = "pop2000", .OutStatisticFieldName = "SubRegionPopulation", .StatisticType = StatisticType.Sum }, New OutStatistic() With { .OnStatisticField = "sub_region", .OutStatisticFieldName = "NumberOfStates", .StatisticType = StatisticType.Count } } End With queryTask.ExecuteAsync(query) End Sub Thanks! Dan
... View more
10-01-2012
04:53 PM
|
0
|
3
|
2235
|
POST
|
If someone could help either with a better workflow or how to deal with where i am stuck i would appreciate it. I'm just tired and want to get some sleep after a few nights chasing this. I have a point feature class in a SQL Server geodatabase (arcgis server 10.1). I need to join this data to non-spatial layers also in the geodatabase in order to retrieve the most recent record and tie it to the point feature. I can create a view within the database or using the "create new" function in the geodatabase. I can then join this view to the feature class in ArcMap and get the associated records no problem. However, when i publish the service i begin to have issues with the attribute data. If i use the data in the Silverlight Viewer the data shows up in the datagrid, but not the popup unless i don't show any of the fields from the joined table then it will show the values from the feature clas. In the silverlight API environment i cannot reference those joined fields in the MapTip. I Think it may have to do with fact that the fully qualified field name for the joined fields has quotes around the database instance name. i.e. Database."SERVER\INSTANCE".%Viewname.Fieldname. The quotes cause issues in the XAML and I don't know how to get around this. If anyone can help with this specific issue or a better workflow to get joined data effectively being used in a feature layer as part of a map service I would be very grateful! Thanks in advance, Dan
... View more
09-26-2012
09:39 AM
|
0
|
0
|
714
|
POST
|
I had a line being drawn in my dockable window that was referenceing the Microsoft.viusalbasic.Powerpacks. When I included this dll in the add-in depolyment all worked fine. I ended up just removing the line to remove the need to include this file. Thanks for the assistance.
... View more
06-11-2012
12:31 PM
|
0
|
0
|
275
|
POST
|
I have an add-in that uses a button to open a dockable window with listboxes and textboxes. This all works without issue on the development machine or any machine that seems to have the SDK installed. On client machines that have just the desktop software installed the add-in installs succefully but when the button is pushed to open the window ArcMap crashes. I assume this is an issue with assembly references but I'm not sure where to start. I'm developing with VS 2008 EE. I can try to provide more details if needed. Any help would be greatly appreciated. Thanks, Dan
... View more
05-31-2012
12:06 PM
|
0
|
2
|
704
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|