Field-Map Scripting

4.2.5.6 FindContainedPointsOrCentroids

FindContainedPointsOrCentroids function


Prototype:

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

Description:

FindContainedPointsOrCentroids function returns IDs of all points, trees or polygon centroids, which are inside specified polygon.

Syntax:


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



Part

Description


variable

A variable declared as a TIntegerListWrapper


Layer

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


SearchPolygonLayerName

A reference to a polygon layer where the polygon - to return points overlapped by it - is located


SearchPolygonID

An identification of a reference polygons for which contained points or centroids are to be found

Return value:

a list of IDs of point and centroid overlapped by selected polygon delimited with the "|" sign

Note:


For Field-Map ver. 14 this function returns a string attribute containing IDs of point overlapped by polygon 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