Field-Map Scripting

4.2.5.17 AddCircularPolygonWithCentroid

AddCircularPolygonWithCentroid function


Prototype:

function AddCircularPolygonWithCentroid (const Radius_m, CenterX_m, CenterY_m : double; const ID : variant) : boolean;

Description:


Syntax (1):

variable := Layer.AddCircularPolygonWithCentroid (Radius, CenterX, CenterY, ID);

Syntax (2):

Layer.AddCircularPolygonWithCentroid (Radius, CenterX, CenterY, ID);


Part

Description


variable

Variable declared as boolean


Layer

A reference to the Field-Map layer as defined in Field-Map Project Manager


Radius

A radius in meters


CenterX

X-coordinate of centroid


CenterY

Y-coordinate of centroid


ID

ID of newly formed polygon with centroid

Return value:

True/false (for syntax 1)


Note: This function is available since version X7.



See also:

GisLayerReference; ShapeRecordCount; GetParentPolygonArea_m2; FindIntersectingPolygons; GetIntersectingPolygonAreas; FindContainedPointsOrCentroids; FindLinesIntersectingPolygon; FindClosestLine; FindPolygonContainingPoint; FindPolygonContainingPointByCoords; AddPoint; AddLine; AddPolygon; AddCentroid; AddPolygonWithCentroid; AddCircularPolygonWithCentroid; SplitMultiPolygon; DeletePoint; DeleteLine; DeletePolygon; DeletePolygonsKeepCentroidsAndAttributes; SaveShapesToBlobs; UpdateSymbolAndLabelInShapefiles; CreatePointsAlongLine; RefreshMap; RefreshMapRectangle; ZoomAndSelect; ZoomAndSelectEntity; SelectEntities; ZoomToLayerExtent; MeasureLineLength_m; MeasurePolygonArea_m2; GetLineCoordinates; GetPolygonCoordinates; GisEntityExists; GetCombinedPolygonsCoordinates; SelectLine