User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.partlengthcs_integer

Table of Contents

ITGIS_Shape.PartLengthCS method

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

Calculates geodetic length of a single shape part using the WGS84 (World Geodetic System 1984, EPSG:4326) model.

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

Syntax

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

Parameters

Name Type Description
_part int
Integer
Zero-based part index. For polygons, part 0 is typically the exterior ring and subsequent parts are interior rings.

Result

Type Description
double
Double
Part length in meters, or -1 if the coordinate system is undefined. Returns zero if the part is invalid.

Remarks

PURPOSE: Measure real-world length of a single geometry part in multipart vector shapes.

BEHAVIOR: Evaluates the specified part in geodetic space and returns the result in meters. For polygon parts, the value represents ring perimeter.

CONSTRAINTS: Requires a valid coordinate system definition. Invalid part indexes return zero.

2026/07/05 01:25

Page Tools