User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.union_itgis_shape

Table of Contents

ITGIS_Shape.Union method

DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.Union | Methods | Properties

Computes the union of this shape and another shape.

Available also on: Delphi | .NET | Java | Python.

Syntax

// 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;

Parameters

Name Type Description
_shape ITGIS_Shape Shape to union with.

Result

Type Description
ITGIS_Shape Newly created shape containing the union result, or nil if the operation produces no result.

Remarks

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.

2026/09/20 23:45

Page Tools