double GeodeticLength( Geometry geometry, LinearUnit lengthUnit, GeodeticCurveType curveType )
Function GeodeticLength( _ ByVal geometry As Geometry, _ ByVal lengthUnit As LinearUnit, _ ByVal curveType As GeodeticCurveType _ ) As Double
Parameters
- geometry
- The input geometry. Cannot be null and its spatial reference cannot be null.
- lengthUnit
- The units of the output. If null, then the output is in meters
- curveType
- The GeodeticCurveType of the segments.
Return Value
The calculated geodetic length in lengthUnit. If lengthUnit is null, then the length is in meters.
If the geometry is empty, then zero is returned.