Skip to content

Geometry

geoarrow.rust.core

Geometry

An immutable geometry scalar using GeoArrow's in-memory representation.

Note: for best performance, do as many operations as possible on arrays or chunked arrays instead of scalars.

__geo_interface__ property

__geo_interface__: dict

Implements the "geo interface protocol".

See gist.github.com/sgillies/2217756

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