Geometry creation

Geometry creation#

box(xmin, ymin, xmax, ymax[, ccw])

Create a box Polygon (or an array of boxes).

destroy_prepared(geometry, **kwargs)

Destroy the prepared part of a geometry, freeing up memory.

empty(shape[, geom_type, order])

Create a geometry array prefilled with None or with empty geometries.

geometrycollections(geometries[, indices, out])

Create an array of GeometryCollections.

linearrings(coords[, y, z, indices, ...])

Create an array of LinearRings.

linestrings(coords[, y, z, indices, ...])

Create an array of LineStrings.

multilinestrings(geometries[, indices, out])

Create an array of MultiLineStrings.

multipoints(geometries[, indices, out])

Create an array of MultiPoints.

multipolygons(geometries[, indices, out])

Create an array of MultiPolygons.

points(coords[, y, z, indices, handle_nan, out])

Create an array of Points.

polygons(geometries[, holes, indices, out])

Create an array of Polygons.

prepare(geometry, **kwargs)

Prepare a geometry, improving performance of other operations.