Field-Map Scripting

4.2.5.13 AddLine

AddLine function


Prototype:

function AddLine (Line_ : TLineWrapper; const ID : variant) : boolean;

Description:

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

Syntax (1):

variable := Layer.AddLine (Line_, ID);

Syntax (2):

Layer.AddLine (Line_, ID);


Part

Description


variable

Variable declared as boolean


Layer

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


Line_

(String expression) defining the topology of line


ID

ID of newly created line.

Return value:

True/false (for syntax 1)



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