DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.Union | Methods | Properties
Computes the union of this shape and another shape.
// C# public ITGIS_Shape Union( ITGIS_Shape _shape );
' VisualBasic Public Function Union( ByVal _shape As ITGIS_Shape ) As ITGIS_Shape
// Oxygene public function Union( _shape : ITGIS_Shape ) : ITGIS_Shape;
| Name | Type | Description |
|---|---|---|
| _shape | ITGIS_Shape | Shape to union with. |
| Type | Description |
|---|---|
| ITGIS_Shape | Newly created shape containing the union result, or nil if the operation produces no result. |
PURPOSE: Merge vector geometries so the result contains all points that belong to either input shape.
BEHAVIOR: Performs the topology union operation and returns the result as a new shape. Disconnected inputs may produce a multipart geometry.
USAGE: Build a union geometry and add it to an output layer.
result = shapeA.Union(shapeB) if result outputLayer.AddShape(result)
CONSTRAINTS: Both shapes must have valid geometry suitable for topology processing.