Field-Map Scripting

4.2.5.8 FindLinesContainedInExpandedPolygon

FindLinesContainedInExpandedPolygon function


Prototype:

function FindLinesContainedInExpandedPolygon(const SearchPolygonLayerName_ :string; const SearchPolygonID_ :integer; const ExpandPolygonByDist_m :variant) :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.FindLinesContainedInExpandedPolygon(SearchPolygonLayerName, SearchPolygonID, ExpandPolygonByDist_m);



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


ExpandPolygonByDist_m

Distance defining the expanded polygon

Return value:

a list of IDs of the intersecting lines



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