移除空间索引 (数据管理)

摘要

从 shapefile 或文件地理数据库、移动地理数据库或企业级地理数据库要素类中删除空间索引。

ArcGIS 可使用空间索引快速查找所有与空间查询相匹配的要素。

参数

标注说明数据类型
输入要素

将从中移除空间索引的 shapefile 或文件地理数据库、移动地理数据库或企业级地理数据库要素类。

Feature Layer; Mosaic Layer

派生输出

标注说明数据类型
更新的数据集

已更新的输入数据集。

要素图层;镶嵌图层

arcpy.management.RemoveSpatialIndex(in_features)
名称说明数据类型
in_features

将从中移除空间索引的 shapefile 或文件地理数据库、移动地理数据库或企业级地理数据库要素类。

Feature Layer; Mosaic Layer

派生输出

名称说明数据类型
out_feature_class

已更新的输入数据集。

要素图层;镶嵌图层

代码示例

RemoveSpatialIndex 示例 1(Python 窗口)

以下 Python 窗口脚本演示了如何在即时模式下使用 RemoveSpatialIndex 函数。

import arcpy
arcpy.env.workspace = "c:/Connections/Connection to esoracle.sde"
arcpy.RemoveSpatialIndex_management("LPI.Land/LPI.PLSSFirstDivision")
RemoveSpatialIndex 示例 2(独立脚本)

以下 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"
# Execute RemoveSpatialIndex
arcpy.RemoveSpatialIndex_management(in_features)

许可信息

  • Basic: 是
  • Standard: 是
  • Advanced: 是

相关主题