Click or drag to resize

GM_FindFeaturesFindNearestFeatures Method

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

Namespace:  GlobalMapper
Assembly:  GlobalMapperWrapperNET45 (in GlobalMapperWrapperNET45.dll) Version: 19.1.0.0 (19.1.0.0)
Syntax
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: GlobalMapper.TypesGM_Point_t
IN: Search location in pixel coordinates
aLayerList
Type: GlobalMapper.TypesGM_LayerList_t
IN: List of layers to search or NULL for all vector layers
aFindFlags
Type: GlobalMapper.TypesGM_FindFlags_t32
IN: Flags controlling how the find is performed
aWorldBounds
Type: GlobalMapper.TypesGM_Rectangle_t
IN: World bounds for search space or NULL for last drawn
aPixelRect
Type: GlobalMapper.TypesGM_PixelRect_t
IN: Pixel bounds for search space or NULL for last drawn
aNearestFeatures
Type: GlobalMapper.TypesGM_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