User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.partlength_integer

Table of Contents

ITGIS_Shape.PartLength method

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

Calculates planar length of a single shape part.

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

Syntax

// C#
public double PartLength(
  int _part
);
' VisualBasic
Public Function PartLength(
  ByVal _part As Integer
) As Double
// Oxygene
public
  function PartLength(
    _part : Integer
  ) : Double;

Parameters

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

Result

Type Description
double
Double
Part length in map units. Returns zero if the part is invalid or if the base implementation is used.

Remarks

PURPOSE: Retrieve planar length for one part of a multipart geometry, such as an individual line component or polygon ring.

BEHAVIOR: Derived arc and polygon shapes sum segment lengths for the specified part. The base shape implementation returns 0.

CONSTRAINTS: The part index is validated by derived implementations. This is a planar calculation in layer map units.

2026/09/20 23:45

Page Tools