Trait IntoArrow

Source
pub trait IntoArrow {
    type ArrowArray: Array;
    type ExtensionType: ExtensionType;

    // Required methods
    fn into_arrow(self) -> Self::ArrowArray;
    fn extension_type(&self) -> &Self::ExtensionType;
}
Expand description

Convert GeoArrow arrays into their respective arrow arrays.

Required Associated Types§

Source

type ArrowArray: Array

The type of arrow array that this geoarrow array can be converted into.

Source

type ExtensionType: ExtensionType

The extension type representing this array. It will always be a type defined by geoarrow_schema.

Required Methods§

Source

fn into_arrow(self) -> Self::ArrowArray

Converts this geoarrow array into an arrow array.

Note that arrow arrays do not maintain Arrow extension metadata, so the result of this method will omit any spatial extension information. Ensure you call Self::extension_type to get extension information that you can add to a Field.

Source

fn extension_type(&self) -> &Self::ExtensionType

Return the Arrow extension type representing this array.

Implementors§

Source§

impl IntoArrow for GeometryArray

Source§

impl IntoArrow for GeometryCollectionArray

Source§

impl IntoArrow for LineStringArray

Source§

impl IntoArrow for MultiLineStringArray

Source§

impl IntoArrow for MultiPointArray

Source§

impl IntoArrow for MultiPolygonArray

Source§

impl IntoArrow for PointArray

Source§

impl IntoArrow for PolygonArray

Source§

impl IntoArrow for RectArray

Source§

impl IntoArrow for WkbViewArray

Source§

impl IntoArrow for WktViewArray

Source§

impl<O: OffsetSizeTrait> IntoArrow for GenericWkbArray<O>

Source§

impl<O: OffsetSizeTrait> IntoArrow for GenericWktArray<O>