Remove Feature Class From Terrain (3D Analyst)

Available with 3D Analyst license.


Removes reference to a feature class participating in a terrain dataset.


  • This tool will only delete embedded features referenced by a terrain dataset.

  • The terrain may need to be rebuilt using Build Terrain if the features being removed were referenced as masspoints surface type. Both the terrain dataset's Properties dialog box in ArcCatalog and the terrain layer's Properties dialog box provide an indication as to whether the dataset needs to be rebuilt.

  • When used in an SDE database, the input terrain cannot be registered as versioned.


arcpy.3d.RemoveFeatureClassFromTerrain(in_terrain, feature_class)
ParameterExplanationData Type

The terrain dataset to process.

Terrain Layer

The feature class to be removed.


Derived Output

NameExplanationData Type

The updated terrain.

Terrain Layer

Code sample

RemoveFeatureClassFromTerrain example 1 (Python window)

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

arcpy.env.workspace = "C:/data"
RemoveFeatureClassFromTerrain example 2 (stand-alone script)

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

# 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)

Licensing information

  • Basic: Requires 3D Analyst
  • Standard: Requires 3D Analyst
  • Advanced: Requires 3D Analyst

Related topics