GM_FindFeatures .FindNearestFeatures 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:  GlobalMapper . GM_Point_t
IN: Search location in pixel coordinates
aLayerList
Type:  GlobalMapper . GM_LayerList_t
IN: List of layers to search or NULL for all vector layers
aFindFlags
Type:  GlobalMapper . GM_FindFlags_t32
IN: Flags controlling how the find is performed
aWorldBounds
Type:  GlobalMapper . GM_Rectangle_t
IN: World bounds for search space or NULL for last drawn
aPixelRect
Type:  GlobalMapper . GM_PixelRect_t
IN: Pixel bounds for search space or NULL for last drawn
aNearestFeatures
Type:  GlobalMapper . GM_FoundFeatureCollection_t
OUT: List of nearest features (buffer for GM_FoundFeature_t)
aMaxFeatures
Type:  System . UInt32
IN: Max number of nearest features to find
aMaxDistPixels
Type:  System . UInt32
IN: Max distance in pixels to search

Return Value

Type:  GM_Error_t32
A GM Error Code
See Also