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

Clip (Analysis)

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

Print all topics in : "Tools"


Related Topics

Extracts input features that overlay the clip features.

Learn more about how Clip (Analysis) works


Illustration

Clip illustration

Usage tips

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

Parameter Explanation Data Type
<in_features>

The features to be clipped.

Feature Layer
<clip_features>

The features used to clip the input features.

Feature Layer
<out_feature_class>

The feature class to be created.

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

workspace E:\arcgis\ArcTutor\Geoprocessing\San_Diego
Clip_analysis majorrds.shp study_quads.shp study_roads.shp

Scripting syntax
About getting started with writing geoprocessing scripts
Clip_analysis (in_features, clip_features, out_feature_class, cluster_tolerance)

Parameter Explanation Data Type
in_features (Required)

The features to be clipped.

Feature Layer
clip_features (Required)

The features used to clip the input features.

Feature Layer
out_feature_class (Required)

The feature class to be created.

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

# Purpose: Determine the type of vegetation within 100 meters of all stream crossings
# Create the Geoprocessor object
import arcgisscripting
gp = arcgisscripting.create()

try:
    # 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")

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

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