VectorLayer.NearestTo

NearestTo(double, double)

Gets the nearest feature to the provided coordinate.

public Feature NearestTo(double x, double y)
ParameterTypeDescription
xDoubleX of the coordinate.
yDoubleY of the coordinate.

Return Value

The nearest feature to the provided coordinate.

See Also


NearestTo(IPoint)

Gets the nearest feature to the provided point.

public Feature NearestTo(IPoint point)
ParameterTypeDescription
pointIPointThe point.

Return Value

The nearest feature to the provided point.

Exceptions

exceptioncondition
ArgumentNullExceptionPoint is null.
ArgumentExceptionPoint is empty or not valid.

See Also