User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.getparttype_integer

Table of Contents

ITGIS_Shape.GetPartType method

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

Return the topology type of a geometry part, such as an exterior ring or interior hole.

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

Syntax

// C#
public TGIS_PartType GetPartType(
  int _part
);
' VisualBasic
Public Function GetPartType(
  ByVal _part As Integer
) As TGIS_PartType
// Oxygene
public
  function GetPartType(
    _part : Integer
  ) : TGIS_PartType;

Parameters

Name Type Description
_part int
Integer
Zero-based part index.

Result

Type Description
TGIS_PartType Part type for the specified part. Returns PartTypeUnknown for an invalid part index.

Remarks

PURPOSE: Identifies how a part should be interpreted in polygon topology, including whether a ring is an outer boundary or an interior hole.

BEHAVIOR: Returns the stored TGIS_PartType value for the requested part. This metadata is used when processing polygon rings and related topological operations.

USAGE: Use this method when inspecting polygon structure, validating ring roles, or distinguishing exterior boundaries from holes.

CONSTRAINTS: Most meaningful for polygon geometry. Invalid indexes return PartTypeUnknown. Virtual method.

2026/07/05 01:25

Page Tools