ConvertVectorFeatureWM

Trait ConvertVectorFeatureWM 

Source
pub trait ConvertVectorFeatureWM<M: Clone = (), P: Clone + Default = Properties, D: Clone + Default = MValue> {
    // Required methods
    fn to_unit_scale(&mut self);
    fn to_ll(&mut self);
    fn to_s2(&self) -> Vec<VectorFeature<M, P, D>>;
    fn to_feature(&self, build_bbox: bool) -> Feature<M, P, D>;
}
Expand description

Underlying conversion mechanic to move GeoJSON Geometry to S2 Geometry

Required Methods§

Source

fn to_unit_scale(&mut self)

Reproject GeoJSON geometry coordinates from lon-lat to a 0->1 coordinate system in place

Source

fn to_ll(&mut self)

Convert a 0->1 coordinate system to lon-lat

Source

fn to_s2(&self) -> Vec<VectorFeature<M, P, D>>

Convert a GeoJSON Vector Feature to an S2 Feature

Source

fn to_feature(&self, build_bbox: bool) -> Feature<M, P, D>

Convert a GeoJSON VectorFeature to a “flat” GeoJSON Feature

Implementations on Foreign Types§

Source§

impl<M: Clone, P: Clone + Default, D: Clone + Default> ConvertVectorFeatureWM<M, P, D> for VectorFeature<M, P, D>

Source§

fn to_unit_scale(&mut self)

Reproject GeoJSON geometry coordinates from lon-lat to a 0->1 coordinate system in place

Source§

fn to_ll(&mut self)

Reproject GeoJSON geometry coordinates from lon-lat to a 0->1 coordinate system in place

Source§

fn to_s2(&self) -> Vec<VectorFeature<M, P, D>>

Convet a GeoJSON Feature to an S2Feature

Source§

fn to_feature(&self, build_bbox: bool) -> Feature<M, P, D>

Convert a GeoJSON VectorFeature to a “flat” GeoJSON Feature

Implementors§