This document is archived and information here might be outdated.  Recommended version.


IBasicGeoprocessor.Union Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IB > IBasicGeoprocessor Interface > IBasicGeoprocessor.Union Method
ArcGIS Developer Help

IBasicGeoprocessor.Union Method

Creates a union of features.

[Visual Basic .NET]
Public Function Union ( _
    ByVal inputTable As ITable, _
    ByVal useSelectedInput As Boolean, _
    ByVal overlayTable As ITable, _
    ByVal useSelectedOverlay As Boolean, _
    ByVal Tolerance As Double, _
    ByVal outputName As IFeatureClassName _
) As IFeatureClass
[C#]
public IFeatureClass Union (
    ITable inputTable,
    bool useSelectedInput,
    ITable overlayTable,
    bool useSelectedOverlay,
    double Tolerance,
    IFeatureClassName outputName
);
[C++]
HRESULT Union(
  ITable* inputTable,
  VARIANT_BOOL useSelectedInput,
  ITable* overlayTable,
  VARIANT_BOOL useSelectedOverlay,
  double Tolerance,
  IFeatureClassName* outputName
);
[C++]
Parameters
inputTable [in]

inputTable is a parameter of type ITable* useSelectedInput [in]
useSelectedInput is a parameter of type bool overlayTable [in]
overlayTable is a parameter of type ITable* useSelectedOverlay [in]
useSelectedOverlay is a parameter of type bool Tolerance [in]
Tolerance is a parameter of type double outputName [in]
outputName is a parameter of type IFeatureClassName*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Union combines the features of two polygon layers into a new feature class that contains the attributes and the full spatial extent of both layers.

Remarks

The useSelectedInput state refers to whether or not a selected subset of the InputTable is to be combined with the overlay. True signifies that a selected subset will be used. False signifies that union operation will ignore any selected subset.

The useSelectedOverlay state refers to whether or not a selected subset of the overlayTable is to be used. True signifies that the selected subset will serve as the overlay layer. False signifies that the union operation will ignore any selected subset.

Passing 0.0 causes the default tolerance to be used. The default tolerance is 1/10,000 of the extent of the data frame's spatial domain.

See Also

IBasicGeoprocessor Interface