POST
|
Hi all, I'm in the process of cutting over from 10.0 to 10.1. In the new 10.1 environment I'm finding that when performing more than one update to a feature via my Silverlight application I'm receiving this error: {Error code '400': 'Unable to complete operation.' Lock request conflicts with an established lock [dbo.DEFAULT]} After some yet to be determined timespan the lock will release and I'll be able to perform the subsequent edit. I never experienced this behavior in 10.0, I understand that this could be a configuration issue with the feature services that have been deployed but I'm on the development side of the equation and have little to no knowledge regarding configuration and publishing of those services. Anyone have any idea why this may be occurring or how I may be able to best correct or troubleshoot this issue? Thanks
... View more
04-12-2013
08:09 AM
|
2
|
14
|
22081
|
POST
|
Hi dbroux, Yes, the SR is set correctly. I have no roads and I do not have Network Analyst. I'm very confident at this point that I am indeed looking at the route task in a wishful manner. Putting the route task aside I am back to the original query: Does anyone know how to draw a polyline displaying the shortest distance between two features??? I'm using the geometry task 'DistanceAsync' method to GET the distance but I cannot determine where the start and end points are as the method does not return these values. Thanks again, Todd
... View more
04-26-2011
09:25 AM
|
0
|
0
|
742
|
POST
|
Yamuna, Thank you, currently pursuing that possibility, looks promising 😉 Jennifer, I have reviewed those samples but thus far I've had no success employing this in my scenario. I'm hoping that someone can help me to understand why the following simple example returns no results. To summarize I have 1 graphics layer, I'm adding 2 points to it, and then trying to use the route task to trace the shortest distance between these features. My routeTask_SolveCompleted event handler fires on completion without error but e.Results is empty. What am I missing here? Is it plausible to use this route task to accomplish this or am I barking up the wrong tree? //Clear graphics layer: glMeasureFeatureDistance.ClearGraphics(); //Create map points: MapPoint mpBegin = new MapPoint(3231948.89, 1740328.161); MapPoint mpEnd = new MapPoint(3231928.299, 1736971.88); //Create first graphic, set geometry, set symbol, add to graphics layer: Graphic graphic = new Graphic(); graphic.Geometry = mpBegin; graphic.Symbol = Measurehelp.SetSymbolSettings("Point"); glMeasureFeatureDistance.Graphics.Add(graphic); //Create second graphic, set geometry, set symbol, add to graphics layer: graphic = new Graphic(); graphic.Geometry = mpEnd; graphic.Symbol = Measurehelp.SetSymbolSettings("Point"); glMeasureFeatureDistance.Graphics.Add(graphic); //Create route task, set url, set event handlers: RouteTask routeTask = new RouteTask(); routeTask.Url = "http://insert_IP/ArcGIS/rest/services/Base_Map/MapServer"; routeTask.SolveCompleted += new EventHandler<RouteEventArgs>(routeTask_SolveCompleted); routeTask.Failed += new EventHandler<TaskFailedEventArgs>(routeTask_Failed); //Create routeparameters, set properties: RouteParameters routeParameters = new RouteParameters(); routeParameters.ReturnRoutes = true; routeParameters.Stops = glMeasureFeatureDistance; //Call route task: routeTask.SolveAsync(routeParameters); Thanks
... View more
04-21-2011
02:10 PM
|
0
|
0
|
742
|
POST
|
Hi All, I have a situation where I need to select 2 features on the map, get the shortest distance between these 2 features, and then programmatically draw a polyline showing the shortest path between the features. The features can be of any type. I'm currently able to select the features and then get the shortest distance value using the geometry task. I cannot seem to find a way to draw the polyline connecting the features however; anyone know how to do this? Any help would be appreciated. TIA, Todd
... View more
04-19-2011
09:32 AM
|
0
|
7
|
4673
|
POST
|
Hello all, I'm trying to get my head around the MVVM pattern; the journey has presented some interesting stumbling blocks. What I have here is an effort to convert existing code architecture to leverage MVVM. Basic components: SearchResultWindow.xaml, SearchResultWindow.xaml.cs, SearchViewModel. General Overview: I have a DataTemplate defined as a resource in my SearchResultWindow.xaml file. In the codebehind for this page, I have a method that builds a items in a treeview dynamically based on data returned from a WCF. Within each treeview item, we dynamically create a DataGrid and add it to the treeview item. When one of these treeview nodes is expanded, the DataGrid contained therein will be populated via a method in the SearchViewModel that calls a WCF Service. The datagrid???s columns are built dynamically because it is unknown how many columns are needed based on the data coming back from the WCF Service. Additionally, we use the DataTemplate resource from our xaml file to dynamically create a DataGridTemplateColumn containing a checkbox and adding this column to the datagrid. Here is the problem: The DataGrid binds to SearchViewModel.FeatureAttributeDataGridRows which is a collection of dictionary items that have been converted using IValueConverter while binding the dictionary object to the column. Although this works well for the DataGridTextColumns I cannot seem to find a way to achieve the CheckBox binding for the CheckBoxes contained in the DataTemplateColumn. These CheckBoxes must be bound to the Feature.IsSelected property, which is not a member of the FeatureAttributeDataGridRows collection. The ???Feature??? class is an inner class contained in the SearchViewModel. A collection of Features exist as a property of the FeatureClass class (another inner class in SearchViewModel), as you will see in the GetFeatureClassFeatures method. I have not included the code that makes up these inner classes. Following an MVVM pattern, how should I bind the IsSelected property of the Feature class object to the DataGridTemplateColumn AND bind the other columns of the datagrid to the SearchViewModel.FeatureAttributeDataGridRows? Any help getting these CheckBoxes bound would be appreciated. Following are some code snippets: Beginning with the xaml, I have a DataGridTemplateColumn setup with the intention of binding the checkboxes contained in this column to a property in the SearchViewModel. *Codebehind for SearchResultWindow: In the codebehind I have a method that creates and populates a treeview: I???ve slimmed this down for the sake of brevity; the main component of interest here is DataGrid dgFeatureDetails This DataGrid will get created several times in this loop, one for each top level node in the tree. * SearchViewModel Snip Any help here will certainly be appreciated! TIA
... View more
04-01-2011
08:01 AM
|
0
|
1
|
2835
|
Title | Kudos | Posted |
---|---|---|
2 | 04-12-2013 08:09 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|