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§
Sourcetype Output: GeoArrowArray
type Output: GeoArrowArray
The output GeoArrow array type.
Required Methods§
Sourcefn wrap_array(&self, input: Input) -> GeoArrowResult<Self::Output>
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.