标注 | 说明 | 数据类型 |
输入要素 | 将从中移除空间索引的 shapefile 或文件地理数据库、移动地理数据库或企业级地理数据库要素类。 | Feature Layer; Mosaic Layer |
派生输出
标注 | 说明 | 数据类型 |
更新的数据集 | 已更新的输入数据集。 | Feature Layer; Mosaic Layer |
从 shapefile 或文件地理数据库、移动地理数据库或企业级地理数据库要素类中删除空间索引。
ArcGIS 使用空间索引来快速定位与空间查询匹配的要素。
标注 | 说明 | 数据类型 |
输入要素 | 将从中移除空间索引的 shapefile 或文件地理数据库、移动地理数据库或企业级地理数据库要素类。 | Feature Layer; Mosaic Layer |
标注 | 说明 | 数据类型 |
更新的数据集 | 已更新的输入数据集。 | Feature Layer; Mosaic Layer |
arcpy.management.RemoveSpatialIndex(in_features)
名称 | 说明 | 数据类型 |
in_features | 将从中移除空间索引的 shapefile 或文件地理数据库、移动地理数据库或企业级地理数据库要素类。 | Feature Layer; Mosaic Layer |
名称 | 说明 | 数据类型 |
out_feature_class | 已更新的输入数据集。 | Feature Layer; Mosaic Layer |
以下 Python 窗口脚本演示了如何在即时模式下使用 RemoveSpatialIndex 函数。
import arcpy
arcpy.env.workspace = "c:/Connections/Connection to esoracle.sde"
arcpy.management.RemoveSpatialIndex("LPI.Land/LPI.PLSSFirstDivision")
以下 Python 脚本演示了如何在独立脚本中使用 RemoveSpatialIndex 函数。
# Name: RemoveSpatialIndex_Example2.py
# Description: Removes a spatial index from a SDE feature class.
# Import system modules
import arcpy
# Set workspace
arcpy.env.workspace = "c:/Connections/Connection to esoracle.sde"
# Set local variables
in_features = "LPI.Land/LPI.PLSSFirstDivision"
# Run RemoveSpatialIndex
arcpy.management.RemoveSpatialIndex(in_features)