Field-Map Scripting

4.2.5.10 FindPolygonContainingPoint

FindPolygonContainingPoint function


Prototype:

function FindPolygonContainingPoint(const SearchPointLayerName: string; const SearchPointID: integer): TIntegerListWrapper;

Description:

Use this function to get IDs of polygons, which cover selected point.

Syntax:


variable := Layer.FindPolygonContainingPoint(SearchPointLayerName, SearchPointID);



Part

Description


variable

A variable declared as a TIntegerListWrapper


Layer

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


SearchPointLayerName

A reference to a point layer where the object for which overlapping polygons should be found is located


SearchPointID

An identification of a reference points for which polygons containing them should be found

Return value:

a list of IDs of the polygons overlapping selected point

Note:

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