public double GeodesicDistance( Geometry geometry1, Geometry geometry2, LinearUnit distanceUnit )
Public Overloads Function GeodesicDistance( _ ByVal geometry1 As Geometry, _ ByVal geometry2 As Geometry, _ ByVal distanceUnit As LinearUnit _ ) As Double
Parameters
- geometry1
- The first geometry. Cannot be null and its spatial reference cannot be null.
- geometry2
- The second geometry. Cannot be null and its spatial reference cannot be null.
- distanceUnit
- The units of the output distance. If null, then the distance is in meters.
Return Value
The geodesic distance between the two geometries in distanceUnit. If distanceUnit is null, then the geodesic distance is returned in meters.
If either of the input geometries is empty, then NaN is returned.