从 Terrain 中移除要素类 (3D Analyst)

许可等级:BasicStandardAdvanced

摘要

移除对参与 terrain 数据集的要素类的引用。

用法

语法

RemoveFeatureClassFromTerrain_3d (in_terrain, feature_class)
参数说明数据类型
in_terrain

输入 terrain 数据集。

Terrain Layer
feature_class

要移除的要素类。

String

代码实例

RemoveFeatureClassFromTerrain 示例 1(Python 窗口)

下面的示例演示了如何在 Python 窗口中使用此工具:

import arcpy
from arcpy import env

arcpy.CheckOutExtension("3D")
env.workspace = "C:/data"
arcpy.RemoveFeatureClassFromTerrain_3d("sample.gdb/featuredataset/terrain", 
                                     "points_1995")
RemoveFeatureClassFromTerrain 示例 2(独立脚本)

下面的示例演示了如何在独立 Python 脚本中使用此工具:

'''****************************************************************************
Name: RemoveFeatureClassFromTerrain Example
Description: This script demonstrates how to use the 
             RemoveFeatureClassFromTerrain tool.
****************************************************************************'''

# Import system modules
import arcpy
from arcpy import env

# Obtain a license for the ArcGIS 3D Analyst extension
arcpy.CheckOutExtension("3D")

# Set environment settings
env.workspace = "C:/data"

# Set Local Variables
inTerrain = "sample.gdb/featuredataset/terrain"
remFC = "points_1995"
#Execute RemoveFeatureClassFromTerrain
arcpy.RemoveFeatureClassFromTerrain_3d(inTerrain, remFC)

环境

相关主题

许可信息

ArcGIS for Desktop Basic:需要 3D Analyst
ArcGIS for Desktop Standard:需要 3D Analyst
ArcGIS for Desktop Advanced:需要 3D Analyst
9/15/2013