Calculates the length of eacch polyline in the specified array.
[Visual Basic 6.0] Function GetLengths(
ByVal pSR As ISpatialReference, _
ByVal pInPolylines As IPolylineArray _
) As IDoubleArray
[Visual Basic .NET] Public Function GetLengths ( _ ByVal pSR As ISpatialReference, _ ByVal pInPolylines As IPolylineArray _ ) As IDoubleArray
[C#] public IDoubleArray GetLengths ( ISpatialReference pSR, IPolylineArray pInPolylines );
[Java] public IDoubleArray getLengths ( ISpatialReference pSR, IPolylineArray pInPolylines ) throws IOException, AutomationException
[C++] HRESULT GetLengths( ISpatialReference* pSR, IPolylineArray* pInPolylines, IDoubleArray** ppLengths );
Parameters
pSR
pSR is a parameter of type ISpatialReference
pInPolylines
pInPolylines is a parameter of type IPolylineArray
ppLengths [out, retval]
ppLengths is a parameter of type IDoubleArray
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".
Refer to IGeometryServer for additional details on how the input spatial reference is interpreted.