#NEWLINE# def __init__( self , polygons = None , context_type = 'polygons' ) : #NEWLINE# #INDENT# '\n        Parameters\n        ----------\n        polygons : sequence\n            A sequence of (shell, holes) tuples where shell is the sequence\n            representation of a linear ring (see linearring.py) and holes is\n            a sequence of such linear rings\n\n        Example\n        -------\n        Construct a collection from a sequence of coordinate tuples\n\n          >>> ob = MultiPolygon( [\n          ...     (\n          ...     ((0.0, 0.0), (0.0, 1.0), (1.0, 1.0), (1.0, 0.0)), \n          ...     [((0.1,0.1), (0.1,0.2), (0.2,0.2), (0.2,0.1))]\n          ...     )\n          ... ] )\n          >>> len(ob.geoms)\n          1\n          >>> type(ob.geoms[0]) == Polygon\n          True\n        ' #NEWLINE# super ( MultiPolygon , self ) . __init__ ( ) #NEWLINE# if ( not polygons ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( context_type == 'polygons' ) : #NEWLINE# #INDENT# ( self . _geom , self . _ndim ) = geos_multipolygon_from_polygons ( context_type ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( context_type == 'geojson' ) : #NEWLINE# #INDENT# ( self . _geom , self . _ndim ) = geos_multipolygon_from_py ( polygons )