Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Analysis toolbox > Overlay toolset > Tools

Erase (Analysis) (ArcInfo only)

Release 9.2
Last modified January 13, 2009
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

Creates a feature class by overlaying the Input Features with the polygons of the Erase Features. Only those portions of the Input Features falling outside the Erase Features outside boundaries are copied to the Output Feature Class.

Learn more about how Erase works


Illustration

Erase illustration

Usage tips

Command line syntax
An overview of the Command Line window
Erase_analysis <in_features> <erase_features> <out_feature_class> {cluster_tolerance}

Parameter Explanation Data Type
<in_features>

The input feature class or layer.

Feature Layer
<erase_features>

The features whose outer polygon defines the erasing area.

Feature Layer
<out_feature_class>

The feature class that will contain only those Input Features that lie outside the Erase Features area.

Feature Class
{cluster_tolerance}

The minimum distance separating all feature coordinates (nodes and vertices) as well as the distance a coordinate can move in X or Y (or both). You can set the value to be higher for data that has less coordinate accuracy and lower for datasets with extremely high accuracy.

Linear unit
Data types for geoprocessing tool parameters


Command line example

erase_analysis d:\ workspace\vegetation.shp d:\workspace\fire_poly.shp d:\new_workspace\no_damage.shp 1.3

Scripting syntax
About getting started with writing geoprocessing scripts
Erase_analysis (in_features, erase_features, out_feature_class, cluster_tolerance)

Parameter Explanation Data Type
in_features (Required)

The input feature class or layer.

Feature Layer
erase_features (Required)

The features whose outer polygon defines the erasing area.

Feature Layer
out_feature_class (Required)

The feature class that will contain only those Input Features that lie outside the Erase Features area.

Feature Class
cluster_tolerance (Optional)

The minimum distance separating all feature coordinates (nodes and vertices) as well as the distance a coordinate can move in X or Y (or both). You can set the value to be higher for data that has less coordinate accuracy and lower for datasets with extremely high accuracy.

Linear unit

Data types for geoprocessing tool parameters


Script example

import arcgisscripting
gp = arcgisscripting.create()

gp.workspace = "c:/test_data"
gp.toolbox  = "analysis"
gp.erase("vegetation.shp", "fire_poly.shp", "no_damage.shp", "1.3")

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.