import arcpy from arcpy import env env.workspace = r"C:\temp\python\test.gdb" fc = "Airports" for field in arcpy.ListFields(fc): print field.name, field.type, field.length
#Open output text file log = open('listfields.txt', 'w') for field in arcpy.ListFields(fc): print >> log, field.name, field.type, field.length log.close()
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.