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.
// C# public double PartLengthCS( int _part );
' VisualBasic Public Function PartLengthCS( ByVal _part As Integer ) As Double
// Oxygene public function PartLengthCS( _part : Integer ) : Double;
| 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. |
| Type | Description |
|---|---|
| double Double | Part length in meters, or -1 if the coordinate system is undefined. Returns zero if the part is invalid. |
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.