Delete all lines and line sections outside a continuous border line or intersect by the border line. The border line is a closed polyline.
Concatenating Lines