Skip to content

ChunkedNativeArray

geoarrow.rust.core

ChunkedNativeArray

An immutable chunked array of geometries using GeoArrow's in-memory representation.

type property

type: NativeType

Get the geometry type of this array.

__arrow_c_stream__

__arrow_c_stream__(requested_schema: object | None = None) -> 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.chunked_array() to convert this array into a pyarrow array, without copying memory.

__getitem__

__getitem__(key: int) -> Geometry

Access the item at a given index.

__repr__

__repr__() -> str

Text representation.

chunk

chunk(i: int) -> NativeArray

Access a single underlying chunk.

chunks

chunks() -> List[NativeArray]

Convert to a list of single-chunked arrays.

from_arrow classmethod

from_arrow(data: ArrowArrayExportable) -> Self

Construct this object from existing Arrow data

Parameters:

  • input

    Arrow array to use for constructing this object

Returns:

from_arrow_pycapsule classmethod

from_arrow_pycapsule(schema_capsule: object, array_capsule: object) -> Self

Construct this object from raw Arrow capsules.

num_chunks

num_chunks() -> int

Number of underlying chunks.