User Tools

Site Tools


api:dk11:delphi:gislayervector.tgis_shape.partlengthcs_integer

Table of Contents

TGIS_Shape.PartLengthCS method

DK11 for Delphi | GisLayerVector.TGIS_Shape.PartLengthCS | Constructors | Fields | Methods | Properties

Calculate the length of a shape part.

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

Syntax

// Delphi
public
  function PartLengthCS(
    const _part : Integer
  ) : Double; virtual;
// C++ Builder
public:
  virtual double PartLengthCS(
    const int _part
  );

Parameters

Name Type Description
_part Integer number of the part closest to a given point

Result

Type Description
Double Part length in meters (or -1 if map units if CS is not defined).

Remarks

For polygons function returns length of the perimeter.

2024/12/20 22:19

Page Tools