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
)
Public Shared Function FindNearestFeatures (
aPixelSearchPt As GM_Point_t,
aLayerList As GM_LayerList_t,
aFindFlags As GM_FindFlags_t32,
aWorldBounds As GM_Rectangle_t,
aPixelRect As GM_PixelRect_t,
<OutAttribute> ByRef aNearestFeatures As GM_FoundFeatureCollection_t,
aMaxFeatures As UInteger,
aMaxDistPixels As UInteger
) As GM_Error_t32
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,
[OutAttribute] GM_FoundFeatureCollection_t^% aNearestFeatures,
unsigned int aMaxFeatures,
unsigned int 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_t32A GM Error Code
See Also