Click or drag to resize

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: 18.4.397.0 (18.4.397.0)
Syntax
public CoverageGridPointWithResults FindNearestGridPoint(
	Cartesian cartesianLocation
)

Parameters

cartesianLocation
Type: AGI.Foundation.CoordinatesCartesian
The location at which to search.

Return Value

Type: CoverageGridPointWithResults
The nearest grid point. If GridPoints is empty, this returns null.
Exceptions
ExceptionCondition
InvalidOperationExceptionThrown if the points do not have overlapping availability.
Remarks
This 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