POST
|
So my feature layer does not have any key named "features" or "attributes". I have keys like 'types', 'templates' and 'indexes'...
... View more
03-23-2017
01:06 AM
|
0
|
1
|
757
|
POST
|
I have the fields OBJECTID and CreationDate, so I changed create_date to my field name. I also activated the editor tracking but I still geht the same KeyError: 'features'. Maybe the problem is my URL, because it is a secure feature layer? I use the token as URL parameter like this: http://server.arcgis.com/####/arcgis/rest/services/####/FeatureServer/0?token=####/query' Maybe this is twisting everything up?
... View more
03-23-2017
12:30 AM
|
0
|
2
|
757
|
POST
|
This is exactly what I'm looking for, thank you for this script. However I get a KeyError 'features' in line 11. Is this a field from example feature class?
... View more
03-22-2017
11:22 AM
|
0
|
8
|
757
|
POST
|
Hello, I am currently working on a script that gets data from a hosted
ArcGIS Online feature class. The plan is to go from top to bottom in a particular
column, and for every value X to execute a print command. I've already managed
this with local files:
fc = r'C:/...'
fields = ['F_03']
with arcpy.da.UpdateCursor(fc, fields) as cursor:
for row in cursor:
if row[0] == "X":
print("Yes")
Which will only work with ArcMap and not as standalone script I think.
Also I've already established the "connection" to my hosted feature class with
requests.get(URL). But I can't figure out, how to put those two snippets
together so it will actually work.
... View more
03-22-2017
06:00 AM
|
0
|
1
|
689
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|