ddbs_length function

Calculates the length of geometries