arcgis python 列出一個表所有字段


import arcpy


inFeature = arcpy.GetParameterAsText(0) #原始數據
try:
    fieldList = arcpy.ListFields(inFeature)
    for field in fieldList:
        arcpy.AddMessage("{0} is a type of {1} with a length of {2}"
        .format(field.name, field.type, field.length))

except Exception,e:
    print e.message();

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM