Field-Map Scripting

4.2.5.9 FindClosestLine

FindClosestLine function


Prototype:

function FindClosestLine(const X,Y : double) : variant;

Description:

Finds the closest entity of selected line layer measured from the position defined by coordinates in input.

Syntax:


variable := Layer.FindClosestLine(X,Y);



Part

Description


variable

A variable declared as a variant


Layer

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


X,Y

Coordinates of the position to search the nearest line from

Return value:

ID of the nearest line



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