|
POST
|
Josh, Thank you for the time and the response. The layers are multiple map layers in a feature dataset residing in an enterprise geodatabase.
... View more
10-03-2016
09:25 AM
|
0
|
0
|
2085
|
|
POST
|
Micah, Thank you very much for the response, but now I'm getting a different error. Could this be because the layers I'm trying to set a definition query for are in a feature dataset?
... View more
10-03-2016
09:20 AM
|
0
|
2
|
729
|
|
POST
|
Create and Event Layer, then save the results. Personally, I've never had luck using the Append tool with python. The field mappings are too confusing for me.
... View more
10-03-2016
08:50 AM
|
0
|
1
|
2889
|
|
POST
|
I would do something like a "Site Selection Analysis". Since you have census block data of all these attributes, you could symbolize the layers in an map to see the high crime rates, parks, etc... Start here: https://www.gislounge.com/overview-weighted-site-selection-suitability-analysis/
... View more
10-03-2016
07:33 AM
|
0
|
1
|
674
|
|
POST
|
Darren, Thanks for the help. I am currently running this Pythron script (v. 2.7.8) as a Script tool in a toolbox in ArcMap (v. 10.3.1). When I test the code in the Python Window in ArcMap, I am able to list the fields in the (for f in fields:) loop. But, at the end of the prints, I am getting this error. Any ideas as to why?
... View more
09-30-2016
07:02 AM
|
0
|
6
|
2085
|
|
POST
|
This addition was added to the script but still no results.
... View more
09-29-2016
12:09 PM
|
0
|
1
|
2085
|
|
POST
|
I am trying to find a specific field name in layers in a current working MXD, but I'm having problems getting it right. The overall goal is to loop through layers in an MXD and set a definition query based on a user input (string type). The script runs without any errors, but no definition query is set. Could it be because the type returned by the arcpy.Describe().fields function is Unicode? Any help or advice is greatly appreciated! import arcpy
#User input as 'String' type
feederID = arcpy.GetParameterAsText(0)
#Variables
mxd = arcpy.mapping.MapDocument("CURRENT")
df = arcpy.mapping.ListDataFrames(mxd)[0]
#Set definition query to user set parameters
for lyr in arcpy.mapping.ListLayers(mxd, "", df):
fields = arcpy.Describe(lyr).fields
for f in fields:
if f.Name == "FEEDERID":
lyr.definitionQuery = """FEEDERID = """ + "'" + str(feederID) + "'"
arcpy.RefreshActiveView()
... View more
09-29-2016
11:39 AM
|
0
|
14
|
4083
|
|
POST
|
1.) Add a field to the table that is a double or precision data type 2.) Field Calculate the newly added field to the 'string' field values I'm assuming you're using ArcGIS...
... View more
09-27-2016
06:56 AM
|
2
|
4
|
1389
|
|
POST
|
Oops.. replace 's' with 'p'. row[1] = p[1] row[2] = p[2] and so on...
... View more
09-23-2016
12:23 PM
|
1
|
4
|
2163
|
|
POST
|
Have you tried using a list instead of a dictionary? path_list =[] path_split = [] with arcpy.da.SearchCursor (GFR_SpatialJoin, ["TARGET_FID", "STHSNUM", "STSTNAME", "STSUFFIX", "STCITY", "STSTATE", "STZIP"]) as cursor: for row in cursor: path_list.append(row[0] + '|' + row[1] + '|' + row[2] + '|' + row[3] + '|' + row[4] + '|' + row[5] + '|' + row[6]) del row for p in path_list: path_split.append(p.split('|')) with arcpy.da.UpdateCursor(GFR, ["OBJECTID", "STREET_NUMBER", "STREET_NAME", "STREET_SUFFIX", "CITY", "STATE", "ZIP_CODE"]) as cursor: for row in cursor: for p in path_split: if str(row[0]) == s[0]: row[1] = s[1] row[2] = s[2] row[3] = s[3] row[4] = s[4] row[5] = s[5] row[6] = s[6] cursor.updateRow(row)
... View more
09-23-2016
09:45 AM
|
1
|
6
|
2163
|
|
POST
|
Have you tried making fields editable and visible using the 'Configure Popup' section? In the Web Map, click the ellipses under the layer you want to edit, and select 'Configure Popup'. From here, you can control what fields are editable and visible.
... View more
09-21-2016
02:07 PM
|
1
|
1
|
1040
|
|
POST
|
When you're publishing the service, under the 'Capabilities' -> 'Feature Access' -> 'Properties' section, there is a check box to enable/disable geometry updates. This should work.
... View more
09-21-2016
01:46 PM
|
1
|
5
|
3866
|
|
POST
|
I know using ArcCollector for offline editing, relationships must be based on a GlobalID field.
... View more
09-20-2016
11:31 AM
|
0
|
1
|
2025
|
|
POST
|
Have you tried using the '@SHAPEXY' to search the geometries of the points? For example, if you have a unique ID associated with each point, you can do loop through each record and append the SHAPEXY with the uniqueID to a list. Then do the same for the other feature and see where the two lists differ.
... View more
09-20-2016
09:02 AM
|
0
|
0
|
701
|
|
POST
|
Use None instead of "Null" for x in this: if x is None: delete that stuff
... View more
05-19-2016
10:58 AM
|
1
|
1
|
3042
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-28-2024 11:43 AM | |
| 1 | 09-12-2025 07:32 AM | |
| 1 | 10-26-2018 06:50 AM | |
| 1 | 10-26-2018 08:43 AM | |
| 1 | 02-25-2016 07:50 PM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|