Clip (Analysis) |
|
Release 9.2
Last modified January 13, 2009 |
![]() ![]() ![]() Print all topics in : "Tools" |
Extracts input features that overlay the clip features.
Learn more about how Clip (Analysis) works
Illustration
Usage tips
The spatial reference of the Output Feature Class will be the same as the Input Features.
The Output Feature Class will have the attributes of the Input Features.
The Input Features may be any geometry type, but Clip Features must have polygon geometry.
Current map layers may be used to define Input Features and Clip Features. When using layers, only the currently selected features are used in the Clip operation.
When processing datasets that contain any individual feature with a very large number of vertices (e.g., hundreds of thousands to millions of vertices within a single feature), some geometric processing operations may run out of memory. For more details, see Geoprocessing with large datasets.
The following environment settings affect this tool: Coordinate system, Extent , XY Tolerance, Z Tolerance, M Tolerance, XY Resolution, Z Resolution, M Resolution, Output XY domain, Output Z domain, Output M , domain, Output has M values, Output has Z values, Default Z value, Configuration keyword, Output Spatial Grid.
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 |
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 |
# 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()