Clip (Analysis)

Extracts input features that overlay the clip features.

Learn more about how Clip (Analysis) works


Clip illustration

Usage tips


Clip_analysis (in_features, clip_features, out_feature_class, cluster_tolerance)
Parameter Explanation Datatype
Input Features (Required)

The features to be clipped.

Feature Layer
Clip Features (Required)

The features used to clip the input features.

Feature Layer
Output Featureclass (Required)

The feature class to be created.

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

# Purpose: Determine the type of vegetation within 100 meters of all stream crossings

# Create the Geoprocessor object
import arcgisscripting
gp = arcgisscripting.create()

    # Set the workspace (to avoid having to type in the full path to the data every time)
    gp.Workspace = "c:/projects/RedRiverBasin/data.mdb"

    # Process: Find all stream crossings (points)
    gp.Intersect("roads ; streams ", "stream_crossings", "#", 1.5, "point")

    # Process: Buffer all stream crossings by 100 meters
    gp.Buffer("stream_crossings","stream_crossings_100m", "100 meters")

    # Process: Clip the vegetation feature class to stream_crossing_100m
    gp.Clip_analysis("vegetation", "stream_crossings_100m", "veg_within_100m_of_crossings")

    # Process: Summarize how much (area) of each type of vegetation is found within 100 meters of the stream crossings
    gp.Statistics("veg_within_100m_of_crossings", "veg_within_100m_of_crossings_stats","shape_area sum","veg_type")

    # If an error occurred while running a tool print the messages
    print gp.GetMessages()

See Also

  • Clip (Coverage)
  • Identity (Analysis)
  • Identity (Coverage)
  • Intersect (Coverage)
  • Union (Coverage)