POST
|
I needed to recreate the feature class. This resolved the issue.
... View more
01-04-2022
02:55 PM
|
0
|
1
|
1256
|
POST
|
I have discovered that there is an issue in attempting to create the polygon feature and the feature editing template in ArcMap. I am getting closer to identifying the issue. Anyone have any recommendations?
... View more
01-03-2022
10:04 AM
|
0
|
0
|
1268
|
POST
|
I am having the same issue but with Field Maps. You ever find a solution?
... View more
12-30-2021
02:18 PM
|
0
|
0
|
869
|
POST
|
Field Maps ios App. After downloading an offline area, the layer fails to load with a error code 20 - no data.
... View more
12-30-2021
01:47 PM
|
0
|
4
|
1322
|
POST
|
I modified the script as seen in my provided script to suit my needs. There is only one thing I would like to change. The actual field that I want to change an attribute must match the exact naming for FC1 and FC2. I want to set it up so that the each field NAME can be different. import arcpy arcpy.env.workspace = (r'Database Connections...') # Create variables FC1 = r'Database Connections\... FC1_fields = ['INVENTORYID','SAMPLE'] #expression = "INVENTORYID = 1" FC2 = r'Database Connections\...' FC2_fields = ['INVENTORYID','ANOTHERSAMPLE'] # Create empty dictionary to hold INVENTORYID values from FC2 # Create Search Cursor # Populate dictionary, then search cursor closes automatically fc2_lookup = {} with arcpy.da.SearchCursor(FC2, FC2_fields) as cursor: for row in cursor: # create variables to hold row values # not necessary, but helps with readability a = row[0] # INVENTORYID b = row[1] # Used to look up existing INVENTORYID values in list fc2_lookup = {"INVENTORYID": a, "B":b} # Process: Start Edit edit = arcpy.da.Editor(arcpy.env.workspace) edit.startEditing(False,True) edit.startOperation() # use with again for updatecursor with arcpy.da.UpdateCursor(FC1, FC1_fields) as cursor: for row in cursor: # FC1 fields to variables a = row[0] # INVENTORYID b = row[1] print("initial row: INVENTORYID: {}, B: {}".format(a, b)) # check A column to see if INVENTORYID is in lookup (FC2) if a in fc2_lookup: # update a field in row using values from dictionary #row[0] = fc2_lookup["A"] row[1] = fc2_lookup["B"] # is INVENTORYID which look to see if match and ["B"] is the Dictionary Key value for what will be updated. print("updated row: B: {}".format(row[1])) cursor.updateRow(row) else: # depending on data you might want to investigate why it's missing print('INVENTORYID {} not found in lookup'.format(a)) edit.stopOperation() edit.stopEditing(True) print "done"
... View more
08-26-2020
07:48 AM
|
0
|
0
|
275
|
POST
|
Thank you for providing the sample code. I incorporated it into my script and it worked exactly as I wanted.
... View more
08-24-2020
08:16 AM
|
0
|
0
|
2156
|
POST
|
Thank you for providing your response. Can you explain how your example includes feature class 1 in a search cursor which will be referenced in the update cursor feature class 2 ? Copying from feature class 1 to feature class 2 attribute information.
... View more
08-21-2020
06:41 AM
|
0
|
3
|
2156
|
POST
|
I wanted to copy all records information from FC1 field 1 to FC2 matching field.
... View more
08-20-2020
09:43 AM
|
0
|
0
|
2156
|
POST
|
I am trying to use an UpdateCursor to update a feature class by referencing a Search Cursor. Here is a sample of my code. Note that I consulted the following ESRI document https://support.esri.com/en/technical-article/000019111 to troubleshoot. The feature class is registered as versioned and I created the cursor as an object as opposed to a loop. Edit.startEditing is set to False ,False as suggested in the ESRI document. import arcpy
arcpy.env.workspace = r'Database Connections\THIS IS A VERSION'
# Create variables
FC1 = r'Database Connections\...
FC2 = r'Database Connections\...
fields = ['A','B','C'] expression = "B = 6"
#Search Cursor for item 1
scursor = arcpy.da.SearchCursor(FC2,fields,where_clause=expression)
# Process: Start Edit
edit = arcpy.da.Editor(arcpy.env.workspace)
edit.startEditing(False,False)
edit.startOperation()
# UpdateCursor for item 2
cursor = arcpy.da.UpdateCursor(FC1, fields)
for row in cursor:
row[1] == scursor[row[1]]
cursor.updateRow(row)
print(u'{0},{1},{2}'.format(row[0],row[1],row[2]))
del row
del cursor
edit.stopOperation()
edit.stopEditing(True)
... View more
08-19-2020
01:32 PM
|
0
|
10
|
2514
|
POST
|
I believe the following applies to me. Synopsis Arcpy.ReconcileVersions_management() fails to reconcile version created by operating system authenticated users. Add [] around the version, so for example: ["AVWORLD\cont_joglekar".R1"]
... View more
04-03-2020
05:41 PM
|
0
|
1
|
520
|
POST
|
I didn't realize that there were 2 different Reconcile tools to chose from, I didn't take notice. I will certainly look at the bugs document. I ran the tool in ArcMap. Interesting concept about permissions and ownership.
... View more
04-03-2020
05:15 PM
|
0
|
0
|
520
|
POST
|
When I run the Reconcile tool it works fine. Subsequently, I export the results as a python snippet and run it as a standalone script. The script processes and doesn't return an error but the version doesn't reconcile nor delete. I have come across suggestions that the version name should be in Unicode and that this is a known possible bug. Why wouldn't the script work when it obviously ran just fine when using the tool?
... View more
04-03-2020
04:55 PM
|
0
|
4
|
573
|
POST
|
Have you tried to edit the representation points (not actual features) individually by placing them in their exact location ?
... View more
11-13-2019
02:38 PM
|
0
|
0
|
1835
|
POST
|
I suggest using ArcMap representations as I did very successfully.
... View more
10-17-2019
03:33 PM
|
0
|
2
|
1835
|
POST
|
Update: I know receive separate emails for each listed file. Now, if can combine all of these emails into just one.
... View more
09-24-2019
09:58 AM
|
0
|
1
|
7432
|
Title | Kudos | Posted |
---|---|---|
1 | 10-11-2018 09:35 AM | |
1 | 07-03-2018 08:19 AM |
Online Status |
Offline
|
Date Last Visited |
05-18-2022
09:23 AM
|