Skip to content

Primitive Arrays

Arrays of non-geospatial types. These exist to be used as return types from geospatial operations to maintain strong typing.

geoarrow.rust.core

BooleanArray

__arrow_c_array__ method descriptor

__arrow_c_array__(_requested_schema=None) -> Tuple[object, object]

An implementation of the Arrow PyCapsule Interface. This dunder method should not be called directly, but enables zero-copy data transfer to other Python libraries that understand Arrow memory.

For example, you can call pyarrow.array() to convert this array into a pyarrow array, without copying memory.

Float64Array

__arrow_c_array__ method descriptor

__arrow_c_array__(_requested_schema=None) -> Tuple[object, object]

An implementation of the Arrow PyCapsule Interface. This dunder method should not be called directly, but enables zero-copy data transfer to other Python libraries that understand Arrow memory.

For example, you can call pyarrow.array() to convert this array into a pyarrow array, without copying memory.

to_numpy method descriptor

to_numpy() -> NDArray[np.float64]

Copy this array to a numpy NDArray