... updCursor = arcpy.UpdateCursor(pointLayer) for updRow in updCursor: pnt = updRow.Shape #copy field values from polygon to point layer searchCursor = arcpy.SearchCursor(polygonLayer) for row in searchCursor: poly = row.Shape if poly.contains(pnt): updRow.setValue(copyField, row.getValue(copyField)) updCursor.updateRow(updRow) ...
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.