globalmapper.FindNearestFeatures ================================ .. currentmodule:: globalmapper .. py:function:: FindNearestFeatures (GM_Point_t aPixelSearchPt, [GM_LayerHandle_t32] aLayerList, GM_FindFlags_t32 aFindFlags, GM_Rectangle_t aWorldBounds, GM_PixelRect_t aPixelRect, uint32 MAX_OUTPUT_LEN, uint32 aMaxDistPixels) -> GM_Error_t32, GM_FoundFeature_t, uint32 Searches the provided list of layers for any visible vector features within the provided search distance (*aMaxDistPixels*) of the pixel search location (*aPixelSearchPt*). The *aFindFlags* parameter specifies what types of features to search on. :param GM_Point_t aPixelSearchPt: Search location in pixel coordinates :param [GM_LayerHandle_t32] aLayerList: List of layers to search or None for all vector layers :param GM_FindFlags_t32 aFindFlags: Flags controlling how the find is performed :param GM_Rectangle_t aWorldBounds: World bounds for search space or None for last drawn :param GM_PixelRect_t aPixelRect: Pixel bounds for search space or None for last drawn :param uint32 MAX_OUTPUT_LEN: Max number of nearest features to find :param uint32 aMaxDistPixels: Max distance in pixels to search :returns: Error Code :rtype: GM_Error_t32 :return: List of nearest features :rtype: GM_FoundFeature_t :return: Number of nearest features returned in list :rtype: uint32