shapely.multipolygons

Contents

shapely.multipolygons#

multipolygons(geometries, indices=None, out=None, **kwargs)#

Create multipolygons from arrays of polygons

Parameters:
geometriesarray_like

An array of polygons or coordinates (see polygons).

indicesarray_like, optional

Indices into the target array where input geometries belong. If provided, both geometries and indices should be 1D and have matching sizes. Indices should be in increasing order. Missing indices result in a ValueError unless out is provided, in which case the original value in out is kept.

outndarray, optional

An array (with dtype object) to output the geometries into.

**kwargs

See NumPy ufunc docs for other keyword arguments. Ignored if indices is provided.

See also

multipoints