# get the shapefile name n = arcpy.Describe(shp).name # open an update cursor ucur = arcpy.UpdateCursor(shp) for urow in ucur: urow.FCNAME = n # assuming a field called FCNAME exists ucur.updateRow(urow)
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.