__init__#
- GeosArray.__init__(data)#
Create a GeosArray from Shapely data.
- Parameters:
data (Iterable) – Shapely data (see Note)
- Returns:
Data wrapped in a GeosArray.
- Return type:
- Raises:
ValueError – data is not of correct type
Note
The
data
argument can be one of different types:- GeosArray
Shallow copy of the internal data.
- GeosArray
- None or shapely.lib.Geometry
Wrap data in an array.
- None or shapely.lib.Geometry
- Iterable of shapely.lib.Geometry
use
np.asarray(data)
.
- Iterable of shapely.lib.Geometry