Update (Analysis)

Computes a geometric intersection of the Input Features and Update Features. The attributes and geometry of the Input Features are updated by the Update Features. The results are written to the Output Feature Class.

Learn more about how Update works


Illustration

Update illustration

Usage tips

Syntax

Update_analysis (in_features, update_features, out_feature_class, keep_borders, 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 features that will be used to update the Input features. Geometry type must be polygon.

Feature Layer
Output Feature Class (Required)

The feature class to contain the results. Do not set this to be the same as the Input Features.

Feature Class
Borders (Optional)

Specifies whether the boundary of the update polygon features will be kept.

  • KEEP_BORDER—The outside border of the Update Features will be kept in the Output Feature Class. This is the default option.
  • DROP_BORDER—The outside border of the Update Features are dropped after they are inserted into the Input Features. Item values of the Update Features take precedence over Input features attributes.

Boolean
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 Update tool
try:
    gp.workspace = "c:/data/city.mdb"
    gp.Update("lots", "c:/test_data/shp/cutzones.shp", "c:/test_data/gdb.mdb/futurecut", "only_fid" "0.25")

except:
    print gp.GetMessage()

See Also

  • Update (Coverage)
  • Erase (Analysis)
  • Identity (analysis)
  • Intersect (Analysis)
  • Union (Analysis)
  • Comparison of overlay tools
  • An overview of the overlay toolset