NearestTo

VectorLayer.NearestTo method (1 of 2)

Gets the nearest feature to the provided coordinate.

public Feature NearestTo(double x, double y)
Parameter Type Description
x Double X of the coordinate.
y Double Y of the coordinate.

Return Value

The nearest feature to the provided coordinate.

See Also


VectorLayer.NearestTo method (2 of 2)

Gets the nearest feature to the provided point.

public Feature NearestTo(IPoint point)
Parameter Type Description
point IPoint The point.

Return Value

The nearest feature to the provided point.

Exceptions

exception condition
ArgumentNullException Point is null.
ArgumentException Point is empty or not valid.

See Also