calcLength function

Calculate the Length of Polylines