Struct flatgeobuf::FgbReader
source · pub struct FgbReader<R> { /* private fields */ }
Expand description
FlatGeobuf dataset reader
Implementations§
source§impl<R: Read> FgbReader<R>
impl<R: Read> FgbReader<R>
sourcepub unsafe fn open_unchecked(reader: R) -> Result<FgbReader<R>>
pub unsafe fn open_unchecked(reader: R) -> Result<FgbReader<R>>
Open dataset by reading the header information without FlatBuffers verification
§Safety
This method is unsafe because it does not verify the FlatBuffers header. It is still safe from the Rust safety guarantees perspective, but it may cause undefined behavior if the FlatBuffers header is invalid.
sourcepub fn select_all_seq(self) -> Result<FeatureIter<R, NotSeekable>>
pub fn select_all_seq(self) -> Result<FeatureIter<R, NotSeekable>>
Select all features without using seek.
This can be used to read from an input stream.
sourcepub fn select_bbox_seq(
self,
min_x: f64,
min_y: f64,
max_x: f64,
max_y: f64
) -> Result<FeatureIter<R, NotSeekable>>
pub fn select_bbox_seq( self, min_x: f64, min_y: f64, max_x: f64, max_y: f64 ) -> Result<FeatureIter<R, NotSeekable>>
Select features within a bounding box without using seek.
This can be used to read from an input stream.
source§impl<R: Read + Seek> FgbReader<R>
impl<R: Read + Seek> FgbReader<R>
sourcepub fn select_all(self) -> Result<FeatureIter<R, Seekable>>
pub fn select_all(self) -> Result<FeatureIter<R, Seekable>>
Select all features.
sourcepub fn select_bbox(
self,
min_x: f64,
min_y: f64,
max_x: f64,
max_y: f64
) -> Result<FeatureIter<R, Seekable>>
pub fn select_bbox( self, min_x: f64, min_y: f64, max_x: f64, max_y: f64 ) -> Result<FeatureIter<R, Seekable>>
Select features within a bounding box.
Auto Trait Implementations§
impl<R> RefUnwindSafe for FgbReader<R>where
R: RefUnwindSafe,
impl<R> Send for FgbReader<R>where
R: Send,
impl<R> Sync for FgbReader<R>where
R: Sync,
impl<R> Unpin for FgbReader<R>where
R: Unpin,
impl<R> UnwindSafe for FgbReader<R>where
R: UnwindSafe,
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