public double GeodeticDistance( Geometry geometry1, Geometry geometry2, LinearUnit distanceUnit, GeodeticCurveType curveType )
Public Function GeodeticDistance( _ ByVal geometry1 As Geometry, _ ByVal geometry2 As Geometry, _ ByVal distanceUnit As LinearUnit, _ ByVal curveType As GeodeticCurveType _ ) As Double
Parameters
- geometry1
- The first input geometry. Cannot be null.
- geometry2
- The second input geometry. Cannot be null.
- distanceUnit
- The units of the output. If null, then the output is in meters.
- curveType
- The GeodeticCurveType to use when calculating the distance. The ShapePreserving type is equivalent to Geodesic for this method.
Return Value
The calculated geodetic distance between the two geometries in distanceUnit. If distanceUnit is null, then the distance is in meters.
If at least one geometry is empty, then NaN is returned.