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§
Sourcefn get_type(&self) -> FeatureType
fn get_type(&self) -> FeatureType
Get the type of the vector feature
Sourcefn properties(&self) -> &Properties
fn properties(&self) -> &Properties
Get the properties of the vector feature
Sourcefn has_offsets(&self) -> bool
fn has_offsets(&self) -> bool
true if the feature has offsets
Sourcefn has_m_values(&self) -> bool
fn has_m_values(&self) -> bool
true if the feature has M values
Sourcefn load_geometry(&self) -> VectorGeometry
fn load_geometry(&self) -> VectorGeometry
Get the geometry of the feature
Sourcefn m_values(&self) -> Option<LineStringMValues>
fn m_values(&self) -> Option<LineStringMValues>
Get the M values of the feature
Sourcefn encode_to_cache(
&self,
cache: &mut ColumnCacheWriter,
m_shape: Option<&Shape>,
) -> usize
fn encode_to_cache( &self, cache: &mut ColumnCacheWriter, m_shape: Option<&Shape>, ) -> usize
Encode the feature to cache