Field-Map Scripting

4.2.5.7 FindLinesIntersectingPolygon

FindLinesIntersectingPolygons function


Prototype:

function FindLinesIntersectingPolygons(const SearchPolygonLayerName: string; const SearchPolygonID: integer): TIntegerListWrapper;

Description:

The FindIntersectingPolygons function can be used with line layers. It finds all lines which lies inside the polygon or which intersect its borders. It also includes lines overlayed over polygon boundary.

Syntax:


variable := Layer.FindLinesIntersectingPolygons(SearchPolygonLayerName, SearchPolygonID);



Part

Description


variable

A variable declared as an instance of TIntegerListWrapper


Layer

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


SearchPolygonLayerName

A reference to a polygonal layer where the object for which intersecting lines should be found is located


SearchPolygonID

An identification of a reference polygons for which intersecting lines should be found

Return value:

a list of IDs of the intersecting lines

Note:

For Field-Map ver. 14 this function returns a string attribute containing IDs of intersecting lines delimited with the "|" sign



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