(self, geoms)
return geom_factory(lgeos.methods['unary_union'](collection))
Returns the union of a sequence of geometries

        This method replaces :meth:`cascaded_union` as the
        prefered method for dissolving many polygons.
Returns the union of a sequence of geometries
Returns the union of a sequence of geometries
def unary_union(self, geoms):
        """Returns the union of a sequence of geometries

        This method replaces :meth:`cascaded_union` as the
        prefered method for dissolving many polygons.

        """
        try:
            L = len(geoms)
        except TypeError:
            geoms = [geoms]
            L = 1
        subs = (c_void_p * L)()
        for i, g in enumerate(geoms):
            subs[i] = g._geom
        collection = lgeos.GEOSGeom_createCollection(6, subs, L)
        return geom_factory(lgeos.methods['unary_union'](collection))
def unary_union ( self , geoms ) : try : L = len ( geoms ) except TypeError : geoms = [ geoms ] L = 1 subs = ( c_void_p * L ) ( ) for i , g in enumerate ( geoms ) : subs [ i ] = g . _geom collection = lgeos . GEOSGeom_createCollection ( 6 , subs , L ) return geom_factory ( lgeos . methods [ 'unary_union' ] ( collection ) )