Erase (Analysis)

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

Syntax

Erase_analysis (in_features, erase_features, out_feature_class, cluster_tolerance)
Parameter Explanation Datatype
Input Features (Required)

The input feature class or layer.

Feature Layer
Erase Features (Required)

The features whose outer polygon defines the erasing area.

Feature Layer
Output Feature Class (Required)

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

Feature Class
XY 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")

See Also

  • Erase (Coverage)
  • Identity (Analysis)
  • Intersect (Analysis)
  • Union (Analysis)
  • Update (Analysis)
  • Comparison of overlay tools
  • An overview of the overlay toolset