arcpy显示指定表的索引属性

Posted gisoracle

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了arcpy显示指定表的索引属性相关的知识,希望对你有一定的参考价值。

import arcpy

feature_class = "c:/data/well.shp"

# Create a list of indexes using the ListIndexes function
indexes = arcpy.ListIndexes(feature_class)

# Iterate through the list of indexes
for index in indexes:
    # Print index properties
    print("Name: {0}".format(index.name))
    print("	Type            : {0}".format(index.isAscending))
    print("	Scale           : {0}".format(index.isUnique))
    print("	Number of fields: {0}".format(len(index.fields)))

 

以上是关于arcpy显示指定表的索引属性的主要内容,如果未能解决你的问题,请参考以下文章