Skip to content

NativeArray

geoarrow.rust.core

NativeArray

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

__geo_interface__ property

__geo_interface__: dict

Implements the "geo interface protocol".

See gist.github.com/sgillies/2217756

type property

type: NativeType

Get the geometry type of this array.

__arrow_c_array__

__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.

__getitem__

__getitem__(key: int) -> Geometry

Access the item at a given index

__repr__

__repr__() -> str

Text representation

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.