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

__array__ method descriptor

__array__() -> NDArray[np.bool_]

An implementation of the Array interface, for interoperability with numpy and other array libraries.

__arrow_c_array__ method descriptor

__arrow_c_array__(requested_schema: object | None = 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.bool_]

Copy this array to a numpy NDArray

Float64Array

__array__ method descriptor

__array__() -> NDArray[np.float64]

An implementation of the Array interface, for interoperability with numpy and other array libraries.

__arrow_c_array__ method descriptor

__arrow_c_array__(requested_schema: object | None = 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.

from_numpy builtin

from_numpy(arr: NDArray[np.float64]) -> Self

Construct an array from a Numpy ndarray

to_numpy method descriptor

to_numpy() -> NDArray[np.float64]

Copy this array to a numpy NDArray