Module capacity

Source
Expand description

Counters for managing buffer lengths for each geometry array type.

The most memory-efficient way to construct an array from a set of geometries is to make a first pass over these geometries to count exactly how big each underlying buffer of the Arrow array must be, allocate once for exactly what you need, and then fill those buffers in a second pass. Capacity counters help with this process.

Structsยง

GeometryCapacity
A counter for the buffer sizes of a GeometryArray.
GeometryCollectionCapacity
A counter for the buffer sizes of a GeometryCollectionArray.
LineStringCapacity
A counter for the buffer sizes of a LineStringArray.
MultiLineStringCapacity
A counter for the buffer sizes of a MultiLineStringArray.
MultiPointCapacity
A counter for the buffer sizes of a MultiPointArray.
MultiPolygonCapacity
A counter for the buffer sizes of a MultiPolygonArray.
PolygonCapacity
A counter for the buffer sizes of a PolygonArray.
WkbCapacity
A counter for the buffer sizes of a GenericWkbArray.