i need to pass this data to a new table

المشرف العام

Administrator
طاقم الإدارة
this is my script and i need to create a new attribute table which contain this indicated print. Could someone help me? thanksss

import arcpy from arcpy import env import datetime env.workspace= "C:/temp/temp.gdb" arcpy.env.overwriteOutput = True fc_pnt = "C:/temp/temp.gdb/point" fc_buf = "C:/temp/temp.gdb/poly" max_dist = 300 final_bff = "C:/temp/temp.gdb/final_bff" final_ins = "C:/temp/temp.gdb/final_ins" fields_buff = ["SHAPE@","id_local"] fields = ["OID@", "SHAPE@AREA"] fields_final = ["Shape_Area", "SC_11"] with arcpy.da.SearchCursor(fc_pnt,fields_buff) as curs: for row in curs: pnt_cc = row[0] id_local = row[1] arcpy.Buffer_analysis(pnt_cc, final_bff, str(max_dist)) for i in fc_buf: arcpy.Intersect_analysis([fc_buf,final_bff],final_ins,"ALL","","INPUT") with arcpy.da.SearchCursor(final_ins, fields_final) as cursor: for row in cursor: # i need to pass this print to a new table print(str(id_local) + " " + "{0}, {1},".format(row[0], row[1] ))

أكثر...
 
أعلى