ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Union

  • Summary
  • Illustration
  • Usage
  • Syntax
  • Code Sample
  • Environments
  • Licensing Information

Summary

Computes the geometric intersection of two polygon coverages. All polygons from both coverages will be split at their intersections and preserved in the output coverage.

Learn more about how Union works

Illustration

Union illustration

Usage

  • The input coverage and the union coverage must have polygon topology.

  • Region subclasses in either the input or union coverage are maintained in the output coverage. Subclasses with identical names and attribute schemas are appended.

  • Label points are generated in each output coverage polygon. The new polygon User-IDs are set equal to the polygon internal number minus one.

  • The input coverage, union coverage, and output coverage must have different names, even when in different workspaces.

  • Existing input coverage annotation is copied to the output coverage by UNION.

  • Route systems in the input coverage will be maintained in the output coverage. However, UNION on routes and sections themselves is not permitted.

  • Region subclasses from both input coverage and union coverage are maintained. If the same subclass exists in both coverages, the subclass contents are appended. If the same subclass exists in both coverages but the item definitions are different, a message is given and the subclass is not propagated.

  • The coordinate precision of the output coverage is determined by the Precision for Derived Coverages environment.

  • Projection files will be compared for similarity using the level of comparison specified in the Compare Projections environment.

  • On single-precision coverages, UNION calculates a minimum tolerance based on the mathematical precision of the coverage (based on the width of the BND and the number of decimal places). If the calculated minimum tolerance is greater than the fuzzy tolerance entered, the calculated minimum tolerance is used.

  • The output coverage inherits the items from the point attribute table, tics, and the projection file data model contents from the input coverage.

  • When the input coverage contains linear data belonging to different planar graphs, the data will be maintained in the output coverage. For example, with coincident or colinear arcs, such as arcs representing utility cables at different levels or a road following a stream, the coincident and colinear line segments will be preserved. However, additional vertices may be inserted. In the case of intersecting arcs, such as a road passing over a stream, nodes will not be inserted at the apparent intersection.

Syntax

Union_arc (in_cover, union_cover, out_cover, {fuzzy_tolerance}, {join_attributes})
ParameterExplanationData Type
in_cover

The coverage whose polygons will be combined with the union coverage.

Coverage
union_cover

The union coverage whose polygons will be combined with the input coverage.

Coverage
out_cover

The output coverage that will be created containing the results of the operation.

Coverage
fuzzy_tolerance
(Optional)

The minimum distance between coordinates in the output coverage. By default, the minimum fuzzy tolerance value from the input and union coverages is used.

Learn more about how the default fuzzy tolerance is calculated

Double
join_attributes
(Optional)

Specifies whether all items in both the input and the union coverage will be joined to the output coverage feature attribute table.

  • JOIN —All items from both coverages will appear in the output coverage feature attribute table. If duplicate item names are encountered, the item in the input coverage will be maintained, and the one in the join file will be dropped. This is the default option and is used unless NO_JOIN is specified.
  • NO_JOIN —Only the feature's internal number (cover#) from the input coverage and the union coverage are joined in the output coverage feature attribute table. This option is useful in reducing the size of the output coverage feature attribute table. The cover# field can then be used in the Add Join tool to link the features in the resulting coverage back to the features in the input or union coverage.
Boolean

Code Sample

Union example (stand-alone script)

The following stand-alone script demonstrates how to union two coverages.

# Name: Union_Example.py
# Description: Unions two coverages
# Requirements: ArcInfo Workstation

# Import system modules
import arcpy
from arcpy import env

# Set environment settings
env.workspace = "C:/data"

# Set local variables
inCover = "tong_azone"
unionCover = "tong_flood2"
outCover = "C:/output/studyarea"
joinAttributes = "NO_JOIN"

# Execute Union
arcpy.Union_arc(inCover, unionCover, outCover, "", joinAttributes)

Environments

  • Current Workspace
  • Level Of Comparison Between Projection Files
  • Precision For Derived Coverages
  • Precision For New Coverages
  • Scratch Workspace

Licensing Information

  • ArcGIS for Desktop Basic: No
  • ArcGIS for Desktop Standard: No
  • ArcGIS for Desktop Advanced: Requires ArcInfo Workstation installed

Related Topics

  • An overview of the Overlay toolset
  • An overview of the Overlay toolset
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal