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
¶
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.
__arrow_c_array__ ¶
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.