Geometry creation¶
-
pygeos.creation.
box
(x1, y1, x2, y2)¶ Create box polygons.
- Parameters
x1 : array_like
y2 : array_like
x1 : array_like
y2 : array_like
-
pygeos.creation.
geometrycollections
(geometries)¶ Create geometrycollections from arrays of geometries
- Parameters
geometries : array_like
An array of geometries
-
pygeos.creation.
linearrings
(coords, y=None, z=None)¶ Create an array of linearrings.
If the provided coords do not constitute a closed linestring, the first coordinate is duplicated at the end to close the ring.
- Parameters
coords : array_like
An array of lists of coordinate tuples (2- or 3-dimensional) or, if y is provided, an array of lists of x coordinates
y : array_like
z : array_like
-
pygeos.creation.
linestrings
(coords, y=None, z=None)¶ Create an array of linestrings.
- Parameters
coords : array_like
An array of lists of coordinate tuples (2- or 3-dimensional) or, if y is provided, an array of lists of x coordinates
y : array_like
z : array_like
-
pygeos.creation.
multilinestrings
(geometries)¶ Create multilinestrings from arrays of linestrings
- Parameters
geometries : array_like
An array of linestrings or coordinates (see linestrings).
-
pygeos.creation.
multipoints
(geometries)¶ Create multipoints from arrays of points
- Parameters
geometries : array_like
An array of points or coordinates (see points).
-
pygeos.creation.
multipolygons
(geometries)¶ Create multipolygons from arrays of polygons
- Parameters
geometries : array_like
An array of polygons or coordinates (see polygons).
-
pygeos.creation.
points
(coords, y=None, z=None)¶ Create an array of points.
- Parameters
coords : array_like
An array of coordinate tuples (2- or 3-dimensional) or, if y is provided, an array of x coordinates.
y : array_like
z : array_like
-
pygeos.creation.
polygons
(shells, holes=None)¶ Create an array of polygons.
- Parameters
shell : array_like
An array of linearrings that constitute the out shell of the polygons. Coordinates can also be passed, see linearrings.
holes : array_like
An array of lists of linearrings that constitute holes for each shell.