rows = arcpy.UpdateCursor(outshp,"","", ---> "%s" %(fname,) <----- ,"")
outshp = "Test.shp" fname = "id" isyear = 1 arcpy.CalculateField_management(outshp, fname, isyear)
rows = arcpy.UpdateCursor(outshp,"", "", "fname", "") for row in rows: isyear = 1 row.fname = isyear rows.updateRow(row) del row del rows
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.