GM_FindFeaturesFindNearestFeatures Method
Finds features within a specified number of pixels of a given pixel location.

Namespace:  GlobalMapper
Assembly: GlobalMapperWrapperNET (in GlobalMapperWrapperNET.dll) Version: 18.0.0.0 (18.0.0.0)

Syntax
C#
public static GM_Error_t32 FindNearestFeatures(
	GM_Point_t aPixelSearchPt,
	GM_LayerList_t aLayerList,
	GM_FindFlags_t32 aFindFlags,
	GM_Rectangle_t aWorldBounds,
	GM_PixelRect_t aPixelRect,
	out GM_FoundFeatureCollection_t aNearestFeatures,
	uint aMaxFeatures,
	uint aMaxDistPixels
)

Parameters

aPixelSearchPt
Type: GlobalMapperGM_Point_t
IN: Search location in pixel coordinates
aLayerList
Type: GlobalMapperGM_LayerList_t
IN: List of layers to search or NULL for all vector layers
aFindFlags
Type: GlobalMapperGM_FindFlags_t32
IN: Flags controlling how the find is performed
aWorldBounds
Type: GlobalMapperGM_Rectangle_t
IN: World bounds for search space or NULL for last drawn
aPixelRect
Type: GlobalMapperGM_PixelRect_t
IN: Pixel bounds for search space or NULL for last drawn
aNearestFeatures
Type: GlobalMapperGM_FoundFeatureCollection_t
OUT: List of nearest features (buffer for GM_FoundFeature_t)
aMaxFeatures
Type: SystemUInt32
IN: Max number of nearest features to find
aMaxDistPixels
Type: SystemUInt32
IN: Max distance in pixels to search

Return Value

Type: GM_Error_t32
A GM Error Code
See Also