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

Intersect (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

Computes a geometric intersection of the Input Features. Features or portions of features which overlap in all layers and/or feature classes will be written to the Output Feature Class.

Learn more about how Intersect works


Illustration

Intersect illustration

Usage tips

Command line syntax
An overview of the Command Line window
Intersect_analysis <in_features {Ranks};in_features {Ranks}...> <out_feature_class> {NO_FID | ONLY_FID | ALL} {cluster_tolerance} {INPUT | LINE | POINT}

Parameter Explanation Data Type
<in_features {Ranks};in_features {Ranks}...>

A list of the input feature classes or layers. When the distance between features is less than the cluster tolerance, the features with the lower rank will snap to the feature with the higher rank. The highest rank is one. For more information, see Priority ranks and Geoprocessing tools. With ArcView and Editor licenses, the number of input feature classes or layers is limited to two.

(Feature Layer Long; Feature Layer Long;...)
<out_feature_class>

The feature class to which the results will be written.

Feature Class
{NO_FID | ONLY_FID | ALL}

Determines which attributes from the Input Features will be transferred to the Output Feature Class.

  • ALL — All the attributes from the Input Features will be transferred to the Output Feature Class. This is the default.
  • NO_FID — All the attributes except the FID from the Input Features will be transferred to the Output Feature Class.
  • ONLY_FID — Only the FID field from the Input Features will be transferred to the Output Feature Class.

String
{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
{INPUT | LINE | POINT}

Choose what type of intersection you want to find.

  • INPUT — The intersections returned will be the same geometry type as the Input Features with the lowest dimension geometry. If all inputs are polygons, the output feature class will contain polygons. If one or more of the inputs are lines and none of the inputs are points, the output will be line. If one or more of the inputs are points, the output feature class will contain points. This is the default.
  • LINE — Line intersections will be returned. This is only valid if none of the inputs are points.
  • POINT — Point intersections will be returned.

String
Data types for geoprocessing tool parameters


Command line example

workspace d:\data\RedRiver_basin.mdb
intersect_analysis (vegetation_stands ; road_buffer200m ; water_buffer100) mysites ALL # #
intersect_analysis (vegetation_stands 2; road_buffer200m 1; water_buffer100 2) mysites_ranked ALL # #

Scripting syntax
About getting started with writing geoprocessing scripts
Intersect_analysis (in_features, out_feature_class, join_attributes, cluster_tolerance, output_type)

Parameter Explanation Data Type
in_features (Required)

A list of the input feature classes or layers. When the distance between features is less than the cluster tolerance, the features with the lower rank will snap to the feature with the higher rank. The highest rank is one. For more information, see Priority ranks and Geoprocessing tools. With ArcView and Editor licenses, the number of input feature classes or layers is limited to two.

(Feature Layer Long; Feature Layer Long;...)
out_feature_class (Required)

The feature class to which the results will be written.

Feature Class
join_attributes (Optional)

Determines which attributes from the Input Features will be transferred to the Output Feature Class.

  • ALL — All the attributes from the Input Features will be transferred to the Output Feature Class. This is the default.
  • NO_FID — All the attributes except the FID from the Input Features will be transferred to the Output Feature Class.
  • ONLY_FID — Only the FID field from the Input Features will be transferred to the Output Feature Class.

String
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
output_type (Optional)

Choose what type of intersection you want to find.

  • INPUT — The intersections returned will be the same geometry type as the Input Features with the lowest dimension geometry. If all inputs are polygons, the output feature class will contain polygons. If one or more of the inputs are lines and none of the inputs are points, the output will be line. If one or more of the inputs are points, the output feature class will contain points. This is the default.
  • LINE — Line intersections will be returned. This is only valid if none of the inputs are points.
  • POINT — Point intersections will be returned.

String

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_analysis("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("vegetation", "stream_crossings_100m", "veg_within_100m_of_crossings")

    # Process: Summarize how much (area) of each type of vegetation is found within 100 meter 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.