shapely.multilinestrings

shapely.multilinestrings#

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

Create multilinestrings from arrays of linestrings.

Parameters:
geometriesarray_like

An array of linestrings or coordinates (see linestrings).

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

Notes

Deprecated since version 2.1.0: A deprecation warning is shown if indices is specified as a positional argument. This will need to be specified as a keyword argument in a future release.