Field-Map Scripting

4.10.22 CreateCentroids

CreateCentroids function


Prototype:

function CreateCentroids :TPointsWrapper;

Description:

Creates centroids of the current polygon

Syntax:

centroids:= polygon.CreateCentroids;


Part

Description


centroids

A variable declared as a TPointsWrapper


polygon

A reference to an instance of a TPolygonWrapper

Return value:

TPointsWrapper


Note: This function is available since version X7.



See also:

Create; Free; ID; AddRing; AddPointToRing; LoadFromVarArray; AddPolygon; Ring; RingRotation; RingCount; MainRingCount; PointCount; TotalPointCount; PointX; PointY; Area; AreaOfSimplePolygons; PointInPolygon; CreateCircle; CoordinatesAsText; CreateSamplePoints; CreateCentroids