ListIndexes
汇总
ListIndexes 函数可返回指定数据集中的要素类、shapefile 或表中的索引的列表。
语法
ListIndexes(dataset, {wild_card})
| 参数 | 说明 | 数据类型 | ||||||
|---|---|---|---|---|---|---|---|---|
|
dataset |
The specified feature class or table with the indexes that will be returned. |
String |
||||||
|
wild_card |
限制返回的结果。如果未指定某一值,则返回所有值。通配符不区分大小写。
|
* |
返回值
| 数据类型 | 说明 |
|---|---|
|
Index |
返回包含 |
代码示例
ListIndexes 示例
列出索引属性。
import arcpy
featureclass = "c:/data/roads.shp"
# Get list of indexes for roads.shp and print properties
indexes = arcpy.ListIndexes(featureclass)
for index in indexes:
print("Name : {0}".format(index.name))
print("IsAscending : {0}".format(index.isAscending))
print("IsUnique : {0}".format(index.isUnique))