User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.contains_itgis_shape

Table of Contents

ITGIS_Shape.Contains method

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

Tests whether this shape contains another shape using the DE-9IM (Dimensionally Extended 9-Intersection Model) topology relation. Opposite of Within.

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

Syntax

// C#
public WordBool Contains(
  ITGIS_Shape _shape
);
' VisualBasic
Public Function Contains(
  ByVal _shape As ITGIS_Shape
) As WordBool
// Oxygene
public
  function Contains(
    _shape : ITGIS_Shape
  ) : WordBool;

Parameters

Name Type Description
_shape ITGIS_Shape Shape to test as the contained geometry.

Result

Type Description
WordBool True if this shape spatially contains _shape according to the topology relation; otherwise False.

Remarks

PURPOSE: Test spatial containment for cases such as polygon containing point, region containing line, or feature hierarchy checks.

BEHAVIOR: Evaluates whether _shape is spatially inside this shape using the DE-9IM relation. It is the inverse relation of Within.

CONSTRAINTS: Both shapes must have valid geometry. Boundary handling follows the underlying DE-9IM implementation and may differ from simpler point-in-area expectations.

2026/07/05 01:25

Page Tools