[][src]Struct flatgeobuf::HttpFgbReader

pub struct HttpFgbReader { /* fields omitted */ }

FlatGeobuf dataset HTTP reader

Implementations

impl HttpFgbReader[src]

pub async fn open<'_>(url: &'_ str) -> Result<HttpFgbReader>[src]

pub fn header(&self) -> Header[src]

pub async fn select_all<'_>(&'_ mut self) -> Result<usize>[src]

Select all features. Returns feature count.

pub async fn select_bbox<'_>(
    &'_ mut self,
    min_x: f64,
    min_y: f64,
    max_x: f64,
    max_y: f64
) -> Result<usize>
[src]

Select features within a bounding box. Returns count of selected features.

pub fn features_count(&self) -> usize[src]

Number of selected features

pub async fn next<'_, '_>(&'_ mut self) -> Result<Option<&'_ FgbFeature>>[src]

Read next feature

pub fn cur_feature(&self) -> &FgbFeature[src]

Return current feature

pub async fn process_features<'_, '_, W: FeatureProcessor>(
    &'_ mut self,
    out: &'_ mut W
) -> Result<()>
[src]

Read and process all selected features

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.