Added elsd_to_polylines code