ILayerGeoSearchNearestSearch Method (Point, Int32, Boolean, Double) |
Search for layer objects which reside nearest to a point specified in point.
Namespace:
Ptv.XServer.Controls.Map.Gadgets
Assembly:
Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax ICollection<NearestSearchResult> NearestSearch(
Point point,
int maxNumElements,
bool includeAllOfSameDistance,
double maxDistance
)
Function NearestSearch (
point As Point,
maxNumElements As Integer,
includeAllOfSameDistance As Boolean,
maxDistance As Double
) As ICollection(Of NearestSearchResult)
ICollection<NearestSearchResult>^ NearestSearch(
Point point,
int maxNumElements,
bool includeAllOfSameDistance,
double maxDistance
)
abstract NearestSearch :
point : Point *
maxNumElements : int *
includeAllOfSameDistance : bool *
maxDistance : float -> ICollection<NearestSearchResult>
Parameters
- point
- Type: System.WindowsPoint
Point used as 'kick-off' of this search. - maxNumElements
- Type: SystemInt32
Maximal number of results to look for. - includeAllOfSameDistance
- Type: SystemBoolean
Flag indicating that the sorted list can exceed the maximal number
of elements, when one or more objects exist having the same distance as the element at the
maxNumElements position. Especially when only the nearest object should be returned
(maxNumElements equals 1), all objects at the same location should be returned too. - maxDistance
- Type: SystemDouble
Delimiter for reducing the search area, commonly used to improve performance.
Return Value
Type:
ICollectionNearestSearchResult Collection of nearest layer objects, provided with additional distance information.
See Also