pub struct GeospatialStatistics { /* private fields */ }Expand description
Represents geospatial statistics for a Parquet column or dataset.
This struct contains metadata about the spatial characteristics of geospatial data, including bounding box information and the types of geospatial geometries present. It’s used to optimize spatial queries and provide spatial context for data analysis.
§Examples
use parquet::geospatial::statistics::GeospatialStatistics;
use parquet::geospatial::bounding_box::BoundingBox;
// Statistics with bounding box
let bbox = BoundingBox::new(0.0, 0.0, 100.0, 100.0);
let stats = GeospatialStatistics::new(Some(bbox), Some(vec![1, 2, 3]));Implementations§
Source§impl GeospatialStatistics
impl GeospatialStatistics
Sourcepub fn new(
bbox: Option<BoundingBox>,
geospatial_types: Option<Vec<i32>>,
) -> Self
pub fn new( bbox: Option<BoundingBox>, geospatial_types: Option<Vec<i32>>, ) -> Self
Creates a new geospatial statistics instance with the specified data.
Sourcepub fn geospatial_types(&self) -> Option<&Vec<i32>>
pub fn geospatial_types(&self) -> Option<&Vec<i32>>
Optional list of geometry type identifiers, where None represents lack of information
Sourcepub fn bounding_box(&self) -> Option<&BoundingBox>
pub fn bounding_box(&self) -> Option<&BoundingBox>
Optional bounding defining the spatial extent, where None represents a lack of information.
Trait Implementations§
Source§impl Clone for GeospatialStatistics
impl Clone for GeospatialStatistics
Source§fn clone(&self) -> GeospatialStatistics
fn clone(&self) -> GeospatialStatistics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeospatialStatistics
impl Debug for GeospatialStatistics
Source§impl Default for GeospatialStatistics
impl Default for GeospatialStatistics
Source§fn default() -> GeospatialStatistics
fn default() -> GeospatialStatistics
Returns the “default value” for a type. Read more
Source§impl PartialEq for GeospatialStatistics
impl PartialEq for GeospatialStatistics
impl StructuralPartialEq for GeospatialStatistics
Auto Trait Implementations§
impl Freeze for GeospatialStatistics
impl RefUnwindSafe for GeospatialStatistics
impl Send for GeospatialStatistics
impl Sync for GeospatialStatistics
impl Unpin for GeospatialStatistics
impl UnwindSafe for GeospatialStatistics
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