Trait VectorFeature

Source
pub trait VectorFeature {
    // Required methods
    fn get_type(&self) -> FeatureType;
    fn properties(&self) -> &Properties;
    fn has_bbox(&self) -> bool;
    fn has_offsets(&self) -> bool;
    fn has_m_values(&self) -> bool;
    fn load_geometry(&self) -> VectorGeometry;
    fn m_values(&self) -> Option<LineStringMValues>;
    fn encode_to_cache(
        &self,
        cache: &mut ColumnCacheWriter,
        m_shape: Option<&Shape>,
    ) -> usize;
}
Expand description

Vector Feature functions that are common to all vector features

Required Methods§

Source

fn get_type(&self) -> FeatureType

Get the type of the vector feature

Source

fn properties(&self) -> &Properties

Get the properties of the vector feature

Source

fn has_bbox(&self) -> bool

true if the feature has BBox

Source

fn has_offsets(&self) -> bool

true if the feature has offsets

Source

fn has_m_values(&self) -> bool

true if the feature has M values

Source

fn load_geometry(&self) -> VectorGeometry

Get the geometry of the feature

Source

fn m_values(&self) -> Option<LineStringMValues>

Get the M values of the feature

Source

fn encode_to_cache( &self, cache: &mut ColumnCacheWriter, m_shape: Option<&Shape>, ) -> usize

Encode the feature to cache

Implementors§