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.