Symmetrical Difference (Analysis)

Computes a geometric intersection of the input and update features. Features or portions of features in the input and update features which do not overlap will be written to the Output Feature Class.

Learn more about how Symmetrical Difference works


Illustration

Symmetrical Difference illustration

Usage tips

Syntax

SymDiff_analysis (in_features, update_features, out_feature_class, join_attributes, cluster_tolerance)
Parameter Explanation Datatype
Input Features (Required)

The input feature class or layer. Geometry type must be polygon.

Feature Layer
Update Features (Required)

The update feature class or layer. Geometry type must be polygon.

Feature Layer
Output Featureclass (Required)

The feature class to which the results will be written.

Feature Class
Join Attributes (Optional)

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

  • ALL—All the attributes from the Input Features and Update Features will be transferred to the output. This is the default.
  • NO_FID—All the attributes except the FID Input Features and Update Features will be transferred to the output.
  • ONLY_FID—Only the FID from the Input Features and Update Features will be transferred to the output.

String
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

# Create the geoprocessor
import arcgisscripting
gp = arcgisscripting.create()

# Use error trapping in case a problem occurs when running the SymDiff tool
try:
    gp.SymDiff("c:/test_data/covs/forest", "c:/test_data/shp/cutzones.shp", "c:/test_data/gdb.mdb/futurecut", "only_fid" "0.25")

except:
    print gp.GetMessage()

See Also

  • Erase (Analysis)
  • Intersect (Analysis)
  • Comparison of overlay tools
  • An overview of the overlay toolset