... 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) ...
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.