Show / Hide Table of Contents

Method NearestCoordinateGeodetic

NearestCoordinateGeodetic(Geometry, MapPoint, Double, LinearUnit)

Determines the nearest point in the input geometry to the input point, by using a shape preserving geodesic approximation of the input geometry.

Declaration
public static ProximityResult NearestCoordinateGeodetic(this Geometry geometry, MapPoint point, double maxDeviation, LinearUnit deviationUnit = null)
Parameters
Type Name Description
Geometry geometry

A geometry object on which to calculate the nearest coordinate to the point parameter.

MapPoint point

The point from which to calculate the nearest coordinate on the geometry parameter.

System.Double maxDeviation

The maximum distance that the geodetic geometry can deviate from the original (in the units of the deviationUnit parameter). If the value is <= zero, or NAN, the error calculation deviation defaults to 0.01 meters.

LinearUnit deviationUnit

The unit of measure for the maxDeviation parameter. If null, the units of maxDeviation are assumed to be meters.

Returns
Type Description
ProximityResult

A ProximityResult containing the results of the operation, where the Distance is returned in meters. Returns null if the input geometry is empty. Distance is zero if the point lies inside an input polygon, polyline, or envelope.

Remarks

All geometry types are supported for the geometry parameter. Supports true curves.

See Also
NearestCoordinate(Geometry, MapPoint)

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.14 - 200.7
.NET100.14 - 200.7
.NET Windows100.14 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.14 - 200.7
Xamarin.Android100.14 - 100.15
Xamarin.iOS100.14 - 100.15
UWP100.14 - 200.7
In This Article
Back to top Copyright © 2022 Esri.