ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Remove Feature Class From Terrain

Available with 3D Analyst license.

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

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

Usage

  • 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.

Syntax

arcpy.ddd.RemoveFeatureClassFromTerrain(in_terrain, feature_class)
ParameterExplanationData Type
in_terrain

The terrain dataset to process.

Terrain Layer
feature_class

The feature class to be removed.

String

Derived Output

NameExplanationData Type
derived_out_terrain

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.

import arcpy
from arcpy import env

arcpy.CheckOutExtension("3D")
env.workspace = "C:/data"
arcpy.RemoveFeatureClassFromTerrain_3d("sample.gdb/featuredataset/terrain", 
                                     "points_1995")
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

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

Environments

  • Current Workspace
  • Scratch Workspace
  • Auto Commit

Licensing information

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

Related topics

  • An overview of the Data Management toolset
  • Fundamentals of Surfaces
  • Surface formats
  • What is a terrain dataset?
  • Benefits of using terrain datasets

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal