VectorLayer.NearestTo
Contents
[
Hide
]NearestTo(double, double)
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
- class Feature
- class VectorLayer
- namespace Aspose.Gis
- assembly Aspose.GIS
NearestTo(IPoint)
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
- class Feature
- interface IPoint
- class VectorLayer
- namespace Aspose.Gis
- assembly Aspose.GIS