Chop lines after merging connected features