Selectively convert lines to polygons based on tags.