POST
|
Dear Nick, 1. If the routeTaskWithDatabaseName is assigned as "network", then After the call to routeTaskWithDatabaseName, the error object has following error. error NSError * domain: @"com.esri.arcgis.runtime.error" - code: 10004 _userInfo NSDictionary * 1 key/value pair [0] (null) @"NSLocalizedDescription" : @"Cannot open network." key __NSCFConstantString * @"NSLocalizedDescription" value __NSCFString * @"Cannot open network." 2. But if the routeTaskWithDatabaseName is assigned as "network.geodatabase", then there is no error, i.e., error object is nil. But routing does not work, though (neither success nor failed event is fired). Regards Muzammil
... View more
02-18-2015
10:25 PM
|
0
|
1
|
946
|
POST
|
Dear All, I am not able to do offline routing with my network data. I am using latest ArcGIS SDK for iOS and developing in Objective C. Initializing routeTask as shown below. "network.geodatabase" is the geodatabase included in the bundle. And "Network_ND" is under .tn folder which also included in the bundle. self.routeTask = [AGSRouteTask routeTaskWithDatabaseName:@"network" network:@"Network_ND" error:&error]; // assign delegate to this view controller self.routeTask.delegate = self; self.routeTaskParams = [AGSRouteTaskParameters routeTaskParameters]; // kick off asynchronous method to retrieve default parameters // for the route task [self.routeTask retrieveDefaultRouteTaskParameters]; I get below error after requesting retrieveDefaultRouteTaskParameters Error Domain=com.esri.arcgis.runtime.error Code=10004 "Cannot retrieve route task parameters." UserInfo=0x7f8061529f40 And when I try to solve route after adding two points, I get below error. Error Domain=com.esri.arcgis.runtime.error Code=10004 "Route task internal error." UserInfo=0x7f80616ed380 {NSLocalizedDescription=Route task internal error.} But if I try by changing the code as shown below, I neither get any error nor any output. Neither the didSolveWithResult event is fired nor the didFailSolveWithError event. self.routeTask = [AGSRouteTask routeTaskWithDatabaseName:@"network.geodatabase" network:@"Network_ND" error:&error]; // assign delegate to this view controller self.routeTask.delegate = self; self.routeTaskParams = [AGSRouteTaskParameters routeTaskParameters]; // kick off asynchronous method to retrieve default parameters // for the route task [self.routeTask retrieveDefaultRouteTaskParameters]; Please throw some pointers on how to solve this issue. Regards Muzammil
... View more
02-16-2015
11:07 PM
|
0
|
3
|
5330
|
POST
|
Dear All, I'm developing a small application (with Runtime SDK for iOS 10.2.2) for displaying an offline geodatabase (.geodatabase file) that I have created with ArcGIS for Desktop 10.2.1. The application crashes at below line in debug mode. In Device mode, the gdb value is nil ( I used iTunes File Sharing for device). AGSGDBGeodatabase *gdb = [[AGSGDBGeodatabase alloc] initWithPath:thePathString error:&error]; Exception Details in Console Window: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'This AGSFeatureTable is backed by a non-spatial table. A spatial table is required to be rendered in a layer.' Looks like there is a problem with .geodatabase file. I tried a sample with 1 simple layer. It works. But when i generate .geodatabase file with many layers, I get above exception. Regards Muzammil
... View more
04-21-2014
12:53 AM
|
0
|
5
|
4885
|
POST
|
Please let me know how do I revert back to sdk version 2.3.2. How can I uninstall Arcgis runtime sdk 10.1.1 I tried to delete the folders under /Library/SDKs , and installed 2.3.2. Still the projects try to reference $(HOME)/Library/SDKs/ArcGIS/iOS/ArcGIS.framework/Versions/Current/Resources/ArcGIS.bundle (which is applicable to 10.1.1 sdk) and throwing the build error. I tried to set the Framework Search Path to $(HOME)/Library/SDKs/ArcGIS/**. But no luck. Am I missing anything here. Please advise.
... View more
07-23-2013
12:49 AM
|
0
|
0
|
666
|
POST
|
I have created .tpk and put it in iPad Application Documents folder and trying to use as AGSLocalTiledLayer in a simple iPad application. I am facing below problem. Note: This has been observed while running in the simulator iPad 5.1 OS: Mac OS X 10.7.5 XCode: 4.3.3 Simulator: iPad 5.1 .tpk loads as AGSLocalTiledLayer without any problem, if the .tpk has been generated with 15 levels out of 20. i.e. (less than 20MB). But if i generate tiles for all levels and create .tpk, with a size of 15 GB, the AGSLocalTiledLayer does not show up. The mapview is shown in grey color. I have to use offline data with large size (15GB). Please throw some pointers on how to deploy large files.
... View more
07-22-2013
02:11 AM
|
0
|
4
|
3473
|
POST
|
For "elapsed time", refer below http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/Log_message_structure/0093000000mw000000/ For more details refer to tuning performance section ex: http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/Interpreting_server_statistics/0093000000mt000000/
... View more
04-24-2012
03:30 AM
|
0
|
0
|
378
|
POST
|
I prefer to simplify the polygon first. Regards Muzammil
... View more
04-24-2012
03:22 AM
|
0
|
0
|
352
|
POST
|
Thanks Dominique and darina. @Dominique, Many thanks. I concurred the same idea after seeing the json response of multipart polygon (created in arcmap, and published). Thank you.
... View more
03-21-2012
12:45 AM
|
0
|
0
|
914
|
POST
|
Dear Saurabh, I have encountered the same issue when trying to debug SL app running in Google Chrome browser. This is happening when some runtime exception is occurring. But when I use MS IE browser, I am able to continue debugging the app. Regards Muzammil
... View more
03-13-2012
11:29 PM
|
0
|
0
|
798
|
POST
|
I have 3 polygons(rectangles) touching each other. Please see attached image. I need to make them behave as one polygon so that I can rotate or move(drag) them together. Please suggest me some pointers. 1. First Method which I tried. ----------------------------------- Created custom fill symbol as shown below: <esriSym:SimpleFillSymbol x:Name="sfsRect2" BorderBrush="Black" BorderThickness="3" Fill="Transparent"> <esriSym:SimpleFillSymbol.ControlTemplate> <ControlTemplate> <Grid> <Grid.RenderTransform> <RotateTransform Angle="{Binding Path=Attributes[Angle]}" /> </Grid.RenderTransform> <StackPanel Orientation="Vertical"> <StackPanel Orientation="Horizontal"> <Rectangle Width="{Binding Path=Attributes[PITWIDTH]}" Height="{Binding Attributes[PITHEIGHT]}" Fill="Transparent" Stroke="Aqua" StrokeThickness="3"/> <Rectangle Width="{Binding Path=Attributes[PARKWIDTH]}" Height="{Binding Attributes[PARKHEIGHT]}" Fill="Transparent" Stroke="Aqua" StrokeThickness="3"/> </StackPanel> <Rectangle Width="{Binding Path=Attributes[TEMPWIDTH]}" Height="{Binding Path=Attributes[TEMPHEIGHT]}" Fill="Transparent" Stroke="Aqua" StrokeThickness="3"/> </StackPanel> </Grid> </ControlTemplate> </esriSym:SimpleFillSymbol.ControlTemplate> </esriSym:SimpleFillSymbol> Created geometry and bound the variables Graphic gg = new Graphic() { Geometry = env, Symbol = sfsRect2 }; gg.Attributes.Add("Angle", csNB.Value.ToString()); gg.Attributes.Add("TEMPWIDTH", env.Width); gg.Attributes.Add("TEMPHEIGHT", env.Height); and so on...... Output: ------- I am able to see the conjoined rectangles, but the dimensions are inconsistent/varying. The more I zoom into the map, the smaller they (rectangle graphics) become. 2. Second method that I tried. ----------------------------------------------------------------- Draw the three polygons(rectangles) normally. And manage the mouse events for moving them collectively. But when I rotate (programmatically using binding), the 3 rectangles rotate independently. And moreover, the center of rotation is top left vertex of each rectangle. And hence the collective shape is dis-arranged. [ATTACH=CONFIG]12508[/ATTACH]
... View more
03-07-2012
08:28 PM
|
0
|
4
|
2189
|
POST
|
Dear All, Background: ArcGIS Engine 9.3.1 windows application using .NET SDK. I am opening a windows form on click of custom command present in ArcMap. I have a scenecontrol in this form. On form load, I am loading .sxd and then I am executng a small query and then selecting the features. After tat, I have to zoom to selected features during form load itself. I am trying below piece of code to zoom to envelope of selected features (envv, below, is envelope of selected features, got by Union of all envelopes) axSceneControl1.Scene.SceneGraph.ActiveViewer.Camera.ZoomToRect(envv); axSceneControl1.Scene.SceneGraph.ActiveViewer.Redraw(true); Interestingly, the "ZoomToRect" method above expects screen envelope of type IEnvelope. How can I convert envelope to screen envelope?. I have below piece of code to convert into screen, but it requires 'IActiveView' object. ESRI.ArcGIS.Display.IScreenDisplay screenDisplay = activeView.ScreenDisplay;ESRI.ArcGIS.Display.IDisplayTransformation displayTransformation = screenDisplay.DisplayTransformation;displayTransformation.FromMapPoint(mapPoint, out x, out y); I tried getting activeView object by casting axSceneControl into IBasicMap and then casting the result into IActiveView.But it is returning wrong values. Since I have the scenecontrol in the windows form, do i need to implement IApplication interface to access activeview? If this method is incorrect, then how to achieve zoom to selected features in scene form? With Regards, Muzammil.
... View more
10-04-2010
11:18 AM
|
0
|
0
|
635
|
POST
|
Dear All, I have a custom command built using .net sdk (c#), in arcmap. On clicking it, I open a new form containing arcgis engine controls like scenecontrol to display 3D data. Now, how do I zoom to selected features (3D features selection set) programmatically. A sample code will help actually. I have tried getting the envelope of all features in selection set. But I am not able to assign envelope to scene extent. PLease let me know how to accomplish this. Thank you. Regards Muzammil
... View more
10-02-2010
01:51 PM
|
0
|
0
|
802
|
POST
|
Dear Vincent, I have tried your suggestion in following ways, but neither of it works. When tried to cast its always null. 1. Here mapDoc is always null. IMapDocument mapDoc = ((IMxDocument)m_application.Document).FocusMap as IMapDocument; 2. Here also, mapDoc is always null. IMapDocument mapDoc = m_application.Document as IMapDocument; Please suggest some sample. Thank you. Regards Muzammil
... View more
08-16-2010
11:47 PM
|
0
|
0
|
538
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|