CoverageResultsFindNearestGridPoint Method (Cartesian) |
Given a cartesian location find the nearest grid point according to physical distance.
Namespace:
AGI.Foundation.Coverage
Assembly:
AGI.Foundation.Spatial (in AGI.Foundation.Spatial.dll) Version: 25.2.423.0 (25.2.423.0)
Syntaxpublic CoverageGridPointWithResults FindNearestGridPoint(
Cartesian cartesianLocation
)
Public Function FindNearestGridPoint (
cartesianLocation As Cartesian
) As CoverageGridPointWithResults
public:
CoverageGridPointWithResults^ FindNearestGridPoint(
Cartesian cartesianLocation
)
member FindNearestGridPoint :
cartesianLocation : Cartesian -> CoverageGridPointWithResults
Parameters
- cartesianLocation
- Type: AGI.Foundation.CoordinatesCartesian
The location at which to search.
Return Value
Type:
CoverageGridPointWithResultsThe nearest grid point. If
GridPoints is empty, this returns null.
Exceptions| Exception | Condition |
|---|
| InvalidOperationException | Thrown if the points do not have overlapping availability. |
RemarksThis method only works for static grids in the reference frame where the grid is created. The grid point position will be evaluated at the start of availability.
See Also