Move linear_ring func into line_string