convert it to polygons if it's not already. Select them all and Polygons > Combine to make them all one object. Use Polygons > Append to Polygon to fill in the gaps.