Field-Map Scripting

4.2.5.12 AddPoint

AddPoint function


Prototype:

function AddPoint (const X, Y : double; const ID : variant) : boolean;

Description:

Adds a point to a specific layer and for the first form of syntax listed below returns 1 if the point was successfully created and 0 if not.

Syntax (1):

variable := Layer.AddPoint (X, Y, ID)

Syntax (2):

Layer.AddPoint (X, Y, ID);


Part

Description


variable

Variable declared as boolean


Layer

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


X

X - coordinate of added point


Y

Y - coordinate of added point


ID

ID of added point

Return value:

True/false



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