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§
Sourcetype ArrowArray: Array
type ArrowArray: Array
The type of arrow array that this geoarrow array can be converted into.
Sourcetype ExtensionType: ExtensionType
type ExtensionType: ExtensionType
The extension type representing this array. It will always be a type defined by geoarrow_schema.
Required Methods§
Sourcefn into_arrow(self) -> Self::ArrowArray
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
.
Sourcefn extension_type(&self) -> &Self::ExtensionType
fn extension_type(&self) -> &Self::ExtensionType
Return the Arrow extension type representing this array.