Calculates the length of eacch polyline in the specified array.
[Visual Basic .NET] Public Function GetLengths ( _ ByVal pSR As ISpatialReference, _ ByVal pInPolylines As IPolylineArray _ ) As IDoubleArray
[C#] public IDoubleArray GetLengths ( ISpatialReference pSR, IPolylineArray pInPolylines );
[C++]
HRESULT GetLengths(
ISpatialReference* pSR,
IPolylineArray* pInPolylines,
IDoubleArray** ppLengths
);
[C++]Parameters
pSRpSR is a parameter of type ISpatialReference
pInPolylinespInPolylines is a parameter of type IPolylineArray
ppLengths [out, retval]ppLengths is a parameter of type IDoubleArray
Product Availability
Remarks
All geometries are assumed to be
defined in the spatial reference pSR, which cannot be nil. The
length values are computed in that spatial reference. It is not
recommended that this method be used on geometries associated with
a geographic coordinate system, since the length would then be
calculated in units of "degrees".
You can use the GetLengthsGeodesic method to compute accurate
lengths for polylines with latitude-longitude
coordinates.
Refer to IGeometryServer for additional details on how the input spatial reference is interpreted.