Skip to content

Geometry Scalars

The classes on this page represent individual geometry scalars.

Note that operations on arrays will be more performant than operations on scalars. Use arrays and chunked arrays where possible.

geoarrow.rust.core

Point

An immutable Point 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__

__geo_interface__: dict = <attribute '__geo_interface__' of 'geoarrow.rust.core._rust.Point' objects>

Implements the "geo interface protocol".

See gist.github.com/sgillies/2217756

__arrow_c_array__ method descriptor

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

LineString

An immutable LineString 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__

__geo_interface__: dict = <attribute '__geo_interface__' of 'geoarrow.rust.core._rust.LineString' objects>

Implements the "geo interface protocol".

See gist.github.com/sgillies/2217756

__arrow_c_array__ method descriptor

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

Polygon

An immutable Polygon 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__

__geo_interface__: dict = <attribute '__geo_interface__' of 'geoarrow.rust.core._rust.Polygon' objects>

Implements the "geo interface protocol".

See gist.github.com/sgillies/2217756

__arrow_c_array__ method descriptor

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

MultiPoint

An immutable MultiPoint 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__

__geo_interface__: dict = <attribute '__geo_interface__' of 'geoarrow.rust.core._rust.MultiPoint' objects>

Implements the "geo interface protocol".

See gist.github.com/sgillies/2217756

__arrow_c_array__ method descriptor

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

MultiLineString

An immutable MultiLineString 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__

__geo_interface__: dict = <attribute '__geo_interface__' of 'geoarrow.rust.core._rust.MultiLineString' objects>

Implements the "geo interface protocol".

See gist.github.com/sgillies/2217756

__arrow_c_array__ method descriptor

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

MultiPolygon

An immutable MultiPolygon 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__

__geo_interface__: dict = <attribute '__geo_interface__' of 'geoarrow.rust.core._rust.MultiPolygon' objects>

Implements the "geo interface protocol".

See gist.github.com/sgillies/2217756

__arrow_c_array__ method descriptor

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

GeometryCollection

An immutable GeometryCollection 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__

__geo_interface__: dict = <attribute '__geo_interface__' of 'geoarrow.rust.core._rust.GeometryCollection' objects>

Implements the "geo interface protocol".

See gist.github.com/sgillies/2217756

__arrow_c_array__ method descriptor

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

WKB

An immutable WKB-encoded 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.

Rect

An immutable Rect 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.

__arrow_c_array__ method descriptor

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