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

摘要

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

用法

语法

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

The input terrain dataset.

Terrain Layer
feature_class

要移除的要素类。

String

代码示例

RemoveFeatureClassFromTerrain 示例 1(Python 窗口)

The following sample demonstrates the use of this tool in the Python window:

import arcpy
from arcpy import env

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

The following sample demonstrates the use of this tool in a stand-alone Python script:

'''****************************************************************************
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)

环境

相关主题

许可信息

ArcView: 需要 3D Analyst
ArcEditor: 需要 3D Analyst
ArcInfo: 需要 3D Analyst

7/10/2012