shapely.destroy_prepared

shapely.destroy_prepared#

destroy_prepared(geometry, **kwargs)#

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

Note that the prepared geometry will always be cleaned up if the geometry itself is dereferenced. This function needs only be called in very specific circumstances, such as freeing up memory without losing the geometries, or benchmarking.

Parameters:
geometryGeometry or array_like

Geometries are changed in-place

**kwargs

See NumPy ufunc docs for other keyword arguments.

See also

prepare