WrapArray

Trait WrapArray 

Source
pub trait WrapArray<Input> {
    type Output: GeoArrowArray;

    // Required method
    fn wrap_array(&self, input: Input) -> GeoArrowResult<Self::Output>;
}
Expand description

Using a GeoArrow geometry type, wrap the provided storage array as a GeoArrow array.

This is a convenient way to convert from an Arrow array to a GeoArrow array when you have an extension type. You can also use the TryFrom implementations on each GeoArrow array type, but this may be easier to remember and find.

Required Associated Types§

Source

type Output: GeoArrowArray

The output GeoArrow array type.

Required Methods§

Source

fn wrap_array(&self, input: Input) -> GeoArrowResult<Self::Output>

Wrap the given storage array as an GeoArrow array.

This terminology comes from pyarrow/Arrow C++, where extension types similarly have a wrap_array method.

Implementations on Foreign Types§

Source§

impl WrapArray<&GenericByteArray<GenericBinaryType<i32>>> for WkbType

Source§

impl WrapArray<&GenericByteArray<GenericBinaryType<i64>>> for WkbType

Source§

impl WrapArray<&GenericByteArray<GenericStringType<i32>>> for WktType

Source§

impl WrapArray<&GenericByteArray<GenericStringType<i64>>> for WktType

Source§

impl WrapArray<&GenericByteViewArray<BinaryViewType>> for WkbType

Source§

impl WrapArray<&GenericByteViewArray<StringViewType>> for WktType

Source§

impl WrapArray<&FixedSizeListArray> for PointType

Source§

impl WrapArray<&GenericListArray<i32>> for GeometryCollectionType

Source§

impl WrapArray<&GenericListArray<i32>> for LineStringType

Source§

impl WrapArray<&GenericListArray<i32>> for MultiLineStringType

Source§

impl WrapArray<&GenericListArray<i32>> for MultiPointType

Source§

impl WrapArray<&GenericListArray<i32>> for MultiPolygonType

Source§

impl WrapArray<&GenericListArray<i32>> for PolygonType

Source§

impl WrapArray<&StructArray> for BoxType

Source§

impl WrapArray<&StructArray> for PointType

Source§

impl WrapArray<&UnionArray> for GeometryType

Source§

impl WrapArray<&dyn Array> for GeoArrowType

Source§

type Output = Arc<dyn GeoArrowArray>

Source§

fn wrap_array(&self, input: &dyn Array) -> GeoArrowResult<Self::Output>

Source§

impl WrapArray<&dyn Array> for BoxType

Source§

type Output = RectArray

Source§

fn wrap_array(&self, input: &dyn Array) -> GeoArrowResult<Self::Output>

Source§

impl WrapArray<&dyn Array> for GeometryCollectionType

Source§

impl WrapArray<&dyn Array> for GeometryType

Source§

impl WrapArray<&dyn Array> for LineStringType

Source§

impl WrapArray<&dyn Array> for MultiLineStringType

Source§

impl WrapArray<&dyn Array> for MultiPointType

Source§

impl WrapArray<&dyn Array> for MultiPolygonType

Source§

impl WrapArray<&dyn Array> for PointType

Source§

impl WrapArray<&dyn Array> for PolygonType

Source§

impl WrapArray<&dyn Array> for WkbType

Source§

type Output = Arc<dyn GeoArrowArray>

Source§

fn wrap_array(&self, input: &dyn Array) -> GeoArrowResult<Self::Output>

Source§

impl WrapArray<&dyn Array> for WktType

Source§

type Output = Arc<dyn GeoArrowArray>

Source§

fn wrap_array(&self, input: &dyn Array) -> GeoArrowResult<Self::Output>

Implementors§