POST
|
The licence is ArcGIS Server Enterprise so that shouldn't be the problem. Do you mean that the SDE file itself shouldn't be under local profile? I copied the file to the same directory where the Python files are, changed the script to use that file and tried again but came out with the same error.
arcpy.env.workspace = "arcdata02.sde"
updateCur = arcpy.UpdateCursor("sde.SDE.mobile\\sde.SDE.task", sql)
insertCur = arcpy.InsertCursor("sde.SDE.history\\sde.SDE.task_history")
I'm wondering why do the tools work when run from ArcCatalog, but not any more as published GPService.
... View more
09-11-2012
09:39 PM
|
0
|
0
|
143
|
POST
|
I've written couple of Python scripts that make operations to featurelayers and a table. Mostly some CRUD-operations based on the input of tools. Tools work well when they are executed from command line or in ArcMap. However, when published as a Geoprocessing service in ArcGIS server, they all fail to execute. According to ArcGIS server log, the problem is on creating Cursor objects: Executing (InsertRow): InsertRow 1 1 aaa # 2 1.1.2001 1.1.2001 # # # # A # # 0 # # # # 1.1.2001 1.1.2001 1.1.2001 0 0 0 # 0 Start Time: Tue Sep 11 14:09:26 2012 Running script InsertRow... : "C:\Documents and Settings\Administrator.ARCGIS\Application Data\ESRI\Desktop10.0\ArcCatalog\arcdata02.sde\sde.SDE.mobile\sde.SDE.task2" does not exist Failed to execute (InsertRow). Failed at Tue Sep 11 14:09:26 2012 (Elapsed Time: 0,00 seconds) I've tried to with different forms of the connection string (absolute path to sde file, Path starting with "Database connection/<dataset name>/<feature class>), but none of these works. Any ideas to make the script work? I'm running ArcGIS server version 10.0.
... View more
09-11-2012
04:01 AM
|
0
|
3
|
792
|
POST
|
You should check the Bladerunner application. It uses data that is stored locally in a device. Link here: http://www.arcgis.com/home/item.html?id=01acc4eef0f04c2d9d0796e78938d3cd
... View more
08-28-2012
12:38 AM
|
0
|
0
|
285
|
POST
|
Olli, have you tried your app on a different phone? It's possible the blurry accuracy circle has something to do with your phone's operating system and its support for Open GL ES 2.0. Also, do you have a local Esri distributor you can contact on this? I'm not sure how to duplicate this error, as I haven't seen it. -Andy I was able to duplicate the error with another Samsung Galaxy phone, so the bug exists at least in two different Galaxy phones (Galaxy XCover (GT-S5690) and Galaxy S plus (GT-I9001)). I solved the problem by copying the code from nearby sample. It makes the location symbol to apperar properly without the accuracy circle. With accuracy circle turned on the problem exists with similar blurry circle mentioned in previous posts. Olli
... View more
06-06-2012
10:46 PM
|
0
|
0
|
324
|
POST
|
Olli, what happens if you just use the default accuracy circle settings? Does the circle look okay then? To do that comment out the following line: //locationService.setAccuracyCircleOn(false); In regards to the SimpleMarkerSymbol, does it work for you if you try a different style? I was able to duplicate that STYLE.X didn't work for me either. SimpleMarkerSymbol s = new SimpleMarkerSymbol(Color.BLUE,15,com.esri.core.symbol.SimpleMarkerSymbol.STYLE.CIRCLE); -Andy Tried that but didn't help. Actually I changed the symbol color to red to see what is changed on the screen. Strange that the accuracy circle stays and the blurry outline color changes. Code: locationService = mMapView.getLocationService();
SimpleMarkerSymbol s = new SimpleMarkerSymbol(Color.RED,15,com.esri.core.symbol.SimpleMarkerSymbol.STYLE.CIRCLE);
locationService.setSymbol(s); //setSymbol(new PictureMarkerSymbol(getResources().getDrawable(R.drawable.ic_maps_indicator_current_position_anim3)));
//locationService.setAccuracyCircleOn(false);
locationService.setAutoPan(false); Screenshot [ATTACH=CONFIG]14970[/ATTACH] I've looked at the Nearby sample. The location symbol looks ok (blue circle) when I run the application in my phone but I can't find the code that sets the graphical elements of the locator service from the sample project. Olli
... View more
06-05-2012
10:06 PM
|
0
|
0
|
324
|
POST
|
After updating ArcGIS for Android SDK to version 1.1.1 location service shows no symbol anymore. Also the accuracy circle looks weird. How can I make the symbol and accuracy circle look ok? Code snippet and screenshot below.
locationService = mMapView.getLocationService();
locationService.setSymbol(new SimpleMarkerSymbol(Color.BLUE, 15, STYLE.X)); //setSymbol(new PictureMarkerSymbol(getResources().getDrawable(R.drawable.ic_maps_indicator_current_position_anim3)));
locationService.setAccuracyCircleOn(false);
locationService.setAutoPan(false);
locationService.start();
[ATTACH=CONFIG]14902[/ATTACH]
... View more
06-04-2012
02:45 AM
|
0
|
4
|
3174
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|