POST
|
Also if running your web adaptor on Windows check your internet explorer settings and make sure you do not have a proxy server configured (internet options, connections, lan settings, proxy). depending on how your servers are configured on your network this could be causing a loopback that convinces the web adaptor that you are not connecting from the system where the web adapter is installed, even if you are.
... View more
10-20-2016
08:32 PM
|
4
|
1
|
3231
|
POST
|
In terms of function and management, what are the differences between Collector for ArcGIS and the ArcGIS for iPhone/Android apps? The chart on this page may be helpful: http://resources.arcgis.com/en/help/arcgisonline/index.html#/Web_map_client_capabilities/010q000000n6000000/
... View more
06-11-2013
11:43 AM
|
0
|
0
|
339
|
POST
|
Any idea what the ETA is for routing using our own network services on ArcGIS Server or hosted services from ArcGIS Online? We need to route on a large number of dirt roads that are not part of the routing network currently available.
... View more
06-11-2013
11:38 AM
|
0
|
2
|
765
|
POST
|
We are SP4. I'll see if we can get the OK to move to SP5 and see if that fixes the problem.
... View more
01-09-2013
09:43 AM
|
0
|
0
|
401
|
POST
|
I'm running the script in IDLE. When it crashes IDLE exits with the message "pythonw.exe has stopped working". I get the feeling that the correct answer is "use 10.1" and that will work fine, until 10.2 comes out. There has to be some way to determine if the MXD you are connected to is valid that will at least respect the "try" block instead of completely bombing python. -Bill
... View more
01-02-2013
09:47 AM
|
0
|
0
|
401
|
POST
|
Chris- As you describe, it makes connection to the 10.1 MXD just fine, it's once you try to list the layers that the script crashes.
... View more
12-27-2012
11:24 AM
|
0
|
0
|
401
|
POST
|
Sounded great, until I tried it. Then it didn't work. Below is some sample code. When Python gets to processing the second file it crashes. import arcpy
pathList = []
pathList.append(r"\\server\share\MyVersion10.mxd")
pathList.append(r"\\server\share\MyVersion10_1.mxd")
for eachPath in pathList:
try:
MXD = arcpy.mapping.MapDocument(eachPath)
for lyr in arcpy.mapping.ListLayers(MXD):
print(lyr.name)
except:
print("failed on " + eachPath)
... View more
12-21-2012
09:04 AM
|
0
|
0
|
401
|
POST
|
I'm using ArcGIS 10.0 and arcpy.mapping.ListLayers to iterate through the layers in a list of MXDs. my problem is that someon has saved a 10.1 mxd somewhere in the list of MXDs I'm working through. I'd be fine with just skipping that file, but how do I determine what version a MXD file is from Python?
... View more
12-20-2012
09:09 AM
|
0
|
10
|
837
|
POST
|
After some effort I came up with the below. BTW: Thanks Rex Hanson for realizing that some of us might need to do this outside of ESRI: http://rexdotnet.blogspot.com/2009/11/using-arcgis-server-rest-api-in-net.html Next Dev Summit I owe you a beer! Flex: queryTask.execute(query, new AsyncResponder(onResult, onFault));
function onResult(featureSet:FeatureSet, token:Object = null):void
{
jsonResults = featureSet.toJSON();
var request:URLRequest = new URLRequest("http://bwiespape/GeotechExample2ASP/simple.aspx");
request.data = { j: jsonResults};
// if you don't need a file back you could just as easily use HTTPService here
var fileRef:FileReference = new FileReference();
fileRef.download(request,"report.pdf");
} ASP.net Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim serializer As JavaScriptSerializer
Dim nvc As NameValueCollection = Request.Form
Dim responseString As String = nvc("j")
serializer = New JavaScriptSerializer()
If responseString IsNot Nothing Then
Dim results As IDictionary(Of String, Object) = TryCast(serializer.DeserializeObject(responseString), IDictionary(Of String, Object))
If results IsNot Nothing AndAlso results.ContainsKey("features") Then
Dim features As IEnumerable(Of Object) = TryCast(results("features"), IEnumerable(Of Object))
For Each feature As IDictionary(Of String, Object) In features
Dim attributes As IDictionary(Of String, Object) = TryCast(feature("attributes"), IDictionary(Of String, Object))
Dim project_nu As String = TryCast(attributes("Project_Nu"), String)
Dim pointid As String = TryCast(attributes("PointID"), String)
Dim east As Double = Decimal.ToDouble(CDec(attributes("East")))
Dim north As Double = Decimal.ToDouble(CDec(attributes("North")))
'Do Something with your results, array, whatever
Next
End If
End If
End Sub
... View more
05-16-2012
02:02 PM
|
0
|
0
|
131
|
POST
|
If I have a QueryTask in Flex that is generating a FeatureSet, what is the best way to pass the features in the FeatureSet to an ASP.NET page? QueryString? Should I use JSON to incode the results? If necessary I can just pass an Array with two strings and two real numbers per record, I do not need the graphics object.
... View more
04-17-2012
01:31 PM
|
0
|
1
|
441
|
Title | Kudos | Posted |
---|---|---|
4 | 10-20-2016 08:32 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|