User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.isinsidepolygon_itgis_shapepolygon_tgis_insidetype

Table of Contents

ITGIS_Shape.IsInsidePolygon method

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

Tests whether the shape is completely or partially inside a polygon shape, depending on the requested containment mode.

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

Syntax

// C#
public WordBool IsInsidePolygon(
  ITGIS_ShapePolygon _shape,
  TGIS_InsideType _itype
);
' VisualBasic
Public Function IsInsidePolygon(
  ByVal _shape As ITGIS_ShapePolygon,
  ByVal _itype As TGIS_InsideType
) As WordBool
// Oxygene
public
  function IsInsidePolygon(
    _shape : ITGIS_ShapePolygon;
    _itype : TGIS_InsideType
  ) : WordBool;

Parameters

Name Type Description
_shape ITGIS_ShapePolygon Polygon shape used as the containment boundary, including any interior rings (holes).
_itype TGIS_InsideType Containment mode: AllInside requires all vertices inside the polygon, AnyInside requires at least one vertex inside, and Intersect checks whether the geometries intersect.

Result

Type Description
WordBool True if the shape satisfies _itype relative to the polygon shape; otherwise, False.

Remarks

PURPOSE: Performs polygon-based spatial filtering against closed area geometry such as administrative boundaries, parcels, mask polygons, or analysis regions.

BEHAVIOR: Evaluates the shape against the polygon geometry using the requested inside test. Polygon holes are treated as interior rings and are excluded from the polygon interior.

CONSTRAINTS: _shape must be a valid polygon geometry. Results depend on polygon topology and ring structure.

2026/07/05 01:25

Page Tools