regions.to_shape_list(region_list, coordinate_system='fk5')[source]

Converts a list of regions into a regions.ShapeList object.

region_list: python list

Lists of regions.Region objects

format_type: str (‘DS9’ or ‘CRTF’)

The format type of the Shape object. Default is ‘DS9’.

coordinate_system: str

The astropy coordinate system frame in which all the coordinates present in the region_list will be converted. Default is ‘fk5’.

shape_list: regions.ShapeList object

list of regions.Shape objects.