ListIndexes (arcpy)
摘要
列出指定数据集中的要素类、shapefile 或表中的索引。返回的 Python 列表可使用针对索引名称的搜索条件进行限制,并将包含索引对象。
语法
ListIndexes (dataset, {wild_card})
| 参数 | 说明 | 数据类型 | 
| dataset | The specified feature class or table whose indexes will be returned. | String | 
| wild_card | 通配符可限制返回的结果。如果未指定任何通配符,则会返回所有值。 | String | 
代码实例
ListIndexes 示例
列出索引属性。
import arcpy
fc = "C:/Data/roads.shp" 
# Get list of indexes for roads.shp and print properties to interactive window
#
indexes = arcpy.ListIndexes(fc) 
for index in indexes: 
    print  "%-11s : %s" %("Name",index.name)
    print  "%-11s : %s" %("IsAscending",index.isAscending) 
    print  "%-11s : %s" %("IsUnique",index.isUnique)
相关主题
9/15/2013