pub struct RectArray { /* private fields */ }
Expand description
Internally this is implemented as a FixedSizeList[4], laid out as minx, miny, maxx, maxy.
Implementations§
source§impl RectArray
impl RectArray
pub fn new(values: ScalarBuffer<f64>, validity: Option<NullBuffer>) -> Self
sourcepub fn iter_geo_values(&self) -> impl Iterator<Item = Rect> + '_
pub fn iter_geo_values(&self) -> impl Iterator<Item = Rect> + '_
Iterator over geo Geometry objects, not looking at validity
sourcepub fn iter_geo(
&self
) -> ZipValidity<Rect, impl Iterator<Item = Rect> + '_, BitIterator<'_>> ⓘ
pub fn iter_geo( &self ) -> ZipValidity<Rect, impl Iterator<Item = Rect> + '_, BitIterator<'_>> ⓘ
Iterator over geo Geometry objects, taking into account validity
Trait Implementations§
source§impl From<MutableRectArray> for RectArray
impl From<MutableRectArray> for RectArray
source§fn from(other: MutableRectArray) -> Self
fn from(other: MutableRectArray) -> Self
Converts to this type from the input type.
source§impl<O: OffsetSizeTrait> From<RectArray> for PolygonArray<O>
impl<O: OffsetSizeTrait> From<RectArray> for PolygonArray<O>
source§impl<'a> GeoArrayAccessor<'a> for RectArray
impl<'a> GeoArrayAccessor<'a> for RectArray
§type Item = Rect<'a>
type Item = Rect<'a>
The geoarrow scalar object for this geometry array type.
source§unsafe fn value_unchecked(&'a self, index: usize) -> Self::Item
unsafe fn value_unchecked(&'a self, index: usize) -> Self::Item
Returns the element at index
i
Read moresource§fn get(&'a self, index: usize) -> Option<Self::Item>
fn get(&'a self, index: usize) -> Option<Self::Item>
Access the value at slot
i
as an Arrow scalar, considering validity.source§impl<'a> GeometryArrayTrait<'a> for RectArray
impl<'a> GeometryArrayTrait<'a> for RectArray
source§fn validity(&self) -> Option<&NullBuffer>
fn validity(&self) -> Option<&NullBuffer>
Returns the optional validity.
source§fn data_type(&self) -> &GeoDataType
fn data_type(&self) -> &GeoDataType
source§fn storage_type(&self) -> DataType
fn storage_type(&self) -> DataType
Get the logical DataType of this array.
source§fn extension_field(&self) -> Arc<Field>
fn extension_field(&self) -> Arc<Field>
Get the extension type of this array, as defined by the GeoArrow
specification. Read more
source§fn extension_name(&self) -> &str
fn extension_name(&self) -> &str
Get the extension name of this array.
source§fn into_array_ref(self) -> Arc<dyn Array>
fn into_array_ref(self) -> Arc<dyn Array>
source§fn with_coords(self, _coords: CoordBuffer) -> Self
fn with_coords(self, _coords: CoordBuffer) -> Self
Create a new array with replaced coordinates Read more
source§fn coord_type(&self) -> CoordType
fn coord_type(&self) -> CoordType
Get the coordinate type of this geometry array, either interleaved or separated.
source§fn into_coord_type(self, _coord_type: CoordType) -> Self
fn into_coord_type(self, _coord_type: CoordType) -> Self
Cast the coordinate buffer of this geometry array to the given coordinate type.
source§fn owned_slice(&self, offset: usize, length: usize) -> Self
fn owned_slice(&self, offset: usize, length: usize) -> Self
A slice that fully copies the contents of the underlying buffer
fn nulls(&self) -> Option<&NullBuffer>
fn logical_nulls(&self) -> Option<NullBuffer>
source§fn null_count(&self) -> usize
fn null_count(&self) -> usize
The number of null slots in this array. Read more
source§impl IntoArrow for RectArray
impl IntoArrow for RectArray
type ArrowArray = FixedSizeListArray
fn into_arrow(self) -> Self::ArrowArray
source§impl PartialEq for RectArray
impl PartialEq for RectArray
source§impl<'a> RTree<'a> for RectArray
impl<'a> RTree<'a> for RectArray
§type RTreeObject = Rect<'a>
type RTreeObject = Rect<'a>
The object type to store in the RTree.
source§fn rstar_tree(&'a self) -> RTree<Self::RTreeObject>
fn rstar_tree(&'a self) -> RTree<Self::RTreeObject>
Build an
RTree
spatial index containing this array’s geometries.impl StructuralPartialEq for RectArray
Auto Trait Implementations§
impl RefUnwindSafe for RectArray
impl Send for RectArray
impl Sync for RectArray
impl Unpin for RectArray
impl UnwindSafe for RectArray
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more