|
POST
|
When I open a my arcgis online map in arcgis desktop 10.1 some of the layers are empty. Some but not all of the point features are gone. Is this a known issue.
... View more
06-03-2013
02:09 PM
|
0
|
6
|
1420
|
|
POST
|
found it. p2.filter.list = ['Text'] p2.parameterDependencies = [p1.name]
... View more
02-08-2013
10:11 AM
|
0
|
0
|
1327
|
|
POST
|
I also have had this problem, ultimately I gave up on the field calculator and made a stand alone python program to to the job. import arcpy, os
arcpy.env.workspace = "Z:\myTest.gdb" #path to your geodatabase
rows = arcpy.UpdateCursor("test") #test is the name of the feature class you wish to work with
for row in rows:
if row.test1 == None: #test1 would be the name of the field in the feature calss
row.test1 = "Used to be Null"
rows.updateRow(row)
del row
del rows
... View more
02-08-2013
09:04 AM
|
0
|
0
|
977
|
|
POST
|
so I have been looking but I can not seem to find how to populate a input field parameter that is based on the fc parameter. please note the dependence for p2. import arcpy class Toolbox(object): def __init__(self): """Define the toolbox (the name of the toolbox is the name of the .pyt file).""" self.label = "Toolbox" self.alias = "" # List of tool classes associated with this toolbox self.tools = [Tool] class Tool(object): def __init__(self): """Define the tool (tool name is the name of the class).""" self.label = "Tool" self.description = "" self.canRunInBackground = False def getParameterInfo(self): """Define parameter definitions""" # First parameter p1 = arcpy.Parameter( displayName="Input Features", name="in_features", datatype="Feature Layer", parameterType="Required", direction="Input") p2 = arcpy.Parameter( displayName="Input Field", name="in_field", datatype="Field", parameterType="Required", direction="Input") p2.parameterDependencies = ???? p3 = arcpy.Parameter( displayName="Input String", name="in_string", datatype="String", parameterType="Required", direction="Input") return [p1, p2, p3] def isLicensed(self): """Set whether tool is licensed to execute.""" return True def updateParameters(self, parameters): """Modify the values and properties of parameters before internal validation is performed. This method is called whenever a parameter has been changed.""" return def updateMessages(self, parameters): """Modify the messages created by internal validation for each tool parameter. This method is called after internal validation.""" return def execute(self, parameters, messages): """The source code of the tool.""" in_fc = parameters[0].valueAsText in_field = parameters[1].valueAsText in_string = parameters[2].valueAsText rows = arcpy.UpdateCursor(in_fc) for row in rows: row.setValue(in_field, in_string) rows.updateRow(row) del row, rows return
... View more
02-07-2013
04:22 PM
|
0
|
1
|
4145
|
|
POST
|
Thank you Andy and Dan for the the help. It is now working fine with an updated (and correct) url.
... View more
10-30-2012
09:16 PM
|
0
|
0
|
1167
|
|
POST
|
1) I neglected to post the errors from logcat last night with the code. Sorry. 10-29 16:53:11.772: E/ArcGIS(16652): url =http://anc-arcsrv-01.ua.ad.alaska.edu/arcgis/services/myPath_v8/MapServer/MobileServer
10-29 16:53:11.772: E/ArcGIS(16652): org.codehaus.jackson.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
10-29 16:53:11.772: E/ArcGIS(16652): at [Source: java.io.StringReader@40560848; line: 1, column: 2]
10-29 16:53:11.772: E/ArcGIS(16652): at org.codehaus.jackson.JsonParser._constructError(JsonParser.java:1432)
10-29 16:53:11.772: E/ArcGIS(16652): at org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:521)
10-29 16:53:11.772: E/ArcGIS(16652): at org.codehaus.jackson.impl.JsonParserMinimalBase._reportUnexpectedChar(JsonParserMinimalBase.java:442)
10-29 16:53:11.772: E/ArcGIS(16652): at org.codehaus.jackson.impl.ReaderBasedParser._handleUnexpectedValue(ReaderBasedParser.java:1198)
10-29 16:53:11.772: E/ArcGIS(16652): at org.codehaus.jackson.impl.ReaderBasedParser.nextToken(ReaderBasedParser.java:485)
10-29 16:53:11.772: E/ArcGIS(16652): at com.esri.core.internal.b.a.g.a(Unknown Source)
10-29 16:53:11.772: E/ArcGIS(16652): at com.esri.core.internal.b.a.g.a(Unknown Source)
10-29 16:53:11.772: E/ArcGIS(16652): at com.esri.core.internal.a.a.n.b(Unknown Source)
10-29 16:53:11.772: E/ArcGIS(16652): at com.esri.android.map.ags.ArcGISDynamicMapServiceLayer.initLayer(Unknown Source)
10-29 16:53:11.772: E/ArcGIS(16652): at com.esri.android.map.ags.ArcGISDynamicMapServiceLayer$1.run(Unknown Source)
10-29 16:53:11.772: E/ArcGIS(16652): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:444)
10-29 16:53:11.772: E/ArcGIS(16652): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
10-29 16:53:11.772: E/ArcGIS(16652): at java.util.concurrent.FutureTask.run(FutureTask.java:138)
10-29 16:53:11.772: E/ArcGIS(16652): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
10-29 16:53:11.772: E/ArcGIS(16652): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
10-29 16:53:11.772: E/ArcGIS(16652): at java.lang.Thread.run(Thread.java:1027) It does look like the first error is at the URL of the service. 2) I can add the service for the MapServer to ArcGIS Desktop and to ArcGIS Online with the URL "http://anc-arcsrv-01.ua.ad.alaska.edu/arcgis/services/myPath_v8/MapServer" and every thing works fine. However I'm uncertain how to test the URL for MobileServer service at "http://anc-arcsrv-01.ua.ad.alaska.edu/arcgis/services/myPath_v8/MapServer/MobileServer" 3) I can see no errors in DDMS as it loads. According to the android console the app installs and starts normally.
[2012-10-29 16:52:59 - MyPath_v02] ------------------------------
[2012-10-29 16:52:59 - MyPath_v02] Android Launch!
[2012-10-29 16:52:59 - MyPath_v02] adb is running normally.
[2012-10-29 16:52:59 - MyPath_v02] Performing forest.knutsen.ccel.uaa.geomatics.MyPath_v02Activity activity launch
[2012-10-29 16:52:59 - MyPath_v02] Automatic Target Mode: using device 'HT1AXT203453'
[2012-10-29 16:52:59 - MyPath_v02] Uploading MyPath_v02.apk onto device 'HT1AXT203453'
[2012-10-29 16:53:04 - MyPath_v02] Installing MyPath_v02.apk...
[2012-10-29 16:53:11 - MyPath_v02] Success!
[2012-10-29 16:53:11 - MyPath_v02] Starting activity forest.knutsen.ccel.uaa.geomatics.MyPath_v02Activity on device HT1AXT203453
[2012-10-29 16:53:12 - MyPath_v02] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=forest.knutsen.ccel.uaa.geomatics/.MyPath_v02Activity }
... View more
10-29-2012
05:03 PM
|
0
|
0
|
1167
|
|
POST
|
I have created simple service on my server and I'm trying to display it on a android device. However when I run the code all I get is a gray screen. The java code: import android.app.Activity; import android.os.Bundle; import com.esri.android.map.MapView; import com.esri.android.map.ags.ArcGISDynamicMapServiceLayer; public class MyPath_v02Activity extends Activity { MapView mMapView = null; private ArcGISDynamicMapServiceLayer dynamicLayer; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mMapView = (MapView)findViewById(R.id.map); dynamicLayer = new ArcGISDynamicMapServiceLayer("http://anc-arcsrv-01.ua.ad.alaska.edu/arcgis/services/myPath_v8/MapServer/MobileServer"); mMapView.addLayer(dynamicLayer); } @Override protected void onDestroy() { super.onDestroy(); } @Override protected void onPause() { super.onPause(); mMapView.pause(); } @Override protected void onResume() { super.onResume(); mMapView.unpause(); } } and the xml code in "main": <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" tools:context=".MyPath_v02Activity" > <com.esri.android.map.MapView android:id="@+id/map" android:layout_width="fill_parent" android:layout_height="fill_parent" initExtent = " -16713385.63038, 8560546.73163, -16546828.73922, 8746032.94837"> </com.esri.android.map.MapView> </LinearLayout> I made the assumption that the args for initExtent are x min, y min, x max, and y max and I got the values from REST services dir. I there some thing simple that I'm doing wrong. Thnaks for any help.
... View more
10-28-2012
08:01 PM
|
0
|
4
|
1333
|
|
POST
|
I would like to create a simple app for the android os. That consumes a map service. Originaly I was planing on using ArcGIS Server but there may be a opportunity to host my services on a pre-existing ArcIMS install. I'm wondering: 1) if using ArcIMS will work OK? 2) where can I find documentation on setting up a service for mobile consumption on ArcIMS? 3) where can I find documentation on the java code to consume the service. Or would it be the same as it would be for ArcGIS Server? Something like. . . MapView mv = new MapView(this); mv.addLayer(new ArcGISTiledMapServiceLayer( "http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer")); setContentView(mv); Thanks for any help.
... View more
09-24-2012
11:25 AM
|
0
|
2
|
1181
|
|
POST
|
ah, yes the images are small but they are not square. I will add the padding as you suggested. Thanks
... View more
09-19-2012
04:59 PM
|
0
|
0
|
565
|
|
POST
|
I have created a family of custom symbols in the png format for my online map. At first I was hosting the images on a google site but the images stop showing up over time, and are replaced with the browser's generic graphic icon/symbol. I have also tried putting them on photobucket but when I link them into arcgis online it stretches the image. What is the preferred method for hosting images to be used as symbols in arcgis online?
... View more
09-18-2012
05:52 PM
|
0
|
2
|
2740
|
|
POST
|
I see, thanks for the feed back. So one would have to first publish the content with ArcGIS server and then make a online map in ArcGIS Explorer online. I guess at that point one may as well make a web app with the server instead. . .
... View more
06-20-2012
03:41 PM
|
0
|
0
|
1763
|
|
POST
|
So it looks like there is no way to query content that I have uploaded in the form of a shapefile and then published as a map in ArcGIS online, e.g. find point 15.92 based on the values in the attribute table for the shapefile. Is this right? It looks like I could do a query in ArcGIS Explorer online. When open the map in ArcGIS Explorer online and I go into the Queries dialog it get, "There are no layers present in the map to define a query upon." Then when I go into the the Layer details dialog there is no filter option as explained in: http://help.arcgis.com/en/arcgisexplorer/help/#/Filter_features/015600000059000000/ The end goal would be to have the map user be able to search the map based on a few index codes located in the attribute table of the shapefile. I have a few shapefiles in the map, all have an index field but not all of the field are tilted in the same way; however they are all strings. Do I have to compose the map in ArcGIS Explorer online to have my content searchable? I missing something obvious?
... View more
06-20-2012
11:09 AM
|
0
|
2
|
5081
|
|
POST
|
Thanks - only used it for a few minutes this AM; however, it is working much better then EasyEclipse for python.
... View more
05-11-2012
10:53 AM
|
0
|
0
|
797
|
|
POST
|
I have been using EasyEclipse for python, which overall has been working out. But the code completion does not work as it should when I type "arcpy.en" it should suggest "arcpy.env" as it does in the conversational mode inside of arcgis. [ATTACH=CONFIG]14244[/ATTACH] did I do some thing wrong when I configured eclipse? Or is there a better IDE to use?
... View more
05-10-2012
12:42 PM
|
0
|
3
|
1209
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-04-2024 05:39 PM | |
| 1 | 07-30-2024 09:05 AM | |
| 1 | 07-08-2024 05:32 PM | |
| 1 | 03-20-2024 10:27 AM | |
| 6 | 03-13-2024 03:38 PM |
| Online Status |
Offline
|
| Date Last Visited |
4 weeks ago
|