User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_topology.combine_2_itgis_shape_itgis_shape_tgis_topologycombinetype_wordbool

Table of Contents

ITGIS_Topology.Combine_2 method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_Topology.Combine_2 | Methods | Properties

Compute a new shape from the two shapes provided, based on a given operation.

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

Syntax

// C#
public ITGIS_Shape Combine_2(
  ITGIS_Shape _shpA,
  ITGIS_Shape _shpB,
  TGIS_TopologyCombineType _operation,
  WordBool _fixshape
);
' VisualBasic
Public Function Combine_2(
  ByVal _shpA As ITGIS_Shape,
  ByVal _shpB As ITGIS_Shape,
  ByVal _operation As TGIS_TopologyCombineType,
  ByVal _fixshape As WordBool
) As ITGIS_Shape
// Oxygene
public
  function Combine_2(
    _shpA : ITGIS_Shape;
    _shpB : ITGIS_Shape;
    _operation : TGIS_TopologyCombineType;
    _fixshape : WordBool
  ) : ITGIS_Shape;

Parameters

Name Type Description
_shpA ITGIS_Shape first shape
_shpB ITGIS_Shape second shape
_operation TGIS_TopologyCombineType operation code; what kind of operation should be perform between (_shpA) and (_shpB)
_fixshape WordBool if True, then checks and eventually fixes the input shapes for common topological problems, like self-crossings, overlapped parts etc.

Result

Type Description
ITGIS_Shape returns new shape combined out of two others based on given type of operation

Remarks

See TGIS_Shape.Combine for example.

Tip for Intersection operation

When using with many shapes e.g. in loop, check input shapes extents before to improve performance.

// pseudocode:
if GisIsCommonExtent(_shpA, _shpB)
  out = TGIS_Topology.Combine(_shpA, _shpB, TGIS_TopologyCombineType.Intersection) ;
2023/03/24 01:10

Page Tools