VectorLayer.NearestTo
inhoud
[
verbergen
]NearestTo(double, double)
Haalt het object op dat het dichtst bij de opgegeven coördinaat ligt.
public Feature NearestTo(double x, double y)
| Parameter | Type | Beschrijving |
|---|---|---|
| x | Double | X van de coördinaat. |
| y | Double | Y van de coördinaat. |
Winstwaarde
Het object dat het dichtst bij de opgegeven coördinaat ligt.
Zie ook
- class Feature
- class VectorLayer
- naamruimte Aspose.Gis
- montage Aspose.GIS
NearestTo(IPoint)
Haalt het object op dat het dichtst bij het opgegeven punt ligt.
public Feature NearestTo(IPoint point)
| Parameter | Type | Beschrijving |
|---|---|---|
| point | IPoint | Het punt. |
Winstwaarde
De dichtstbijzijnde feature bij het voorziene punt.
Uitzonderingen
| uitzondering | voorwaarde |
|---|---|
| ArgumentNullException | Punt isnull. |
| ArgumentException | Punt is leeg of niet geldig. |
Zie ook
- class Feature
- interface IPoint
- class VectorLayer
- naamruimte Aspose.Gis
- montage Aspose.GIS