Skip to content

Geometry

geoarrow.rust.core.GeoScalar

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[str, object]

Implements the Geo Interface.

For example, you can pass this to [shapely.geometry.shape].

is_null property

is_null: bool

Check if the scalar is null.

Note that Arrow arrays hold a separate null bitmap, so this is separate from whether the geometry is empty.

type property

type: GeoType

The type of the scalar.

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

__eq__

__eq__(value: object) -> bool

__repr__

__repr__() -> str