pub trait FeatureProperties {
    // Required method
    fn process_properties<P>(
        &self,
        processor: &mut P
    ) -> Result<bool, GeozeroError>
       where P: PropertyProcessor;

    // Provided methods
    fn property<T>(&self, name: &str) -> Result<T, GeozeroError>
       where T: PropertyReadType { ... }
    fn property_n<T>(&self, n: usize) -> Result<T, GeozeroError>
       where T: PropertyReadType { ... }
    fn properties(&self) -> Result<HashMap<String, String>, GeozeroError> { ... }
}
Expand description

Feature properties processing API

Required Methods§

source

fn process_properties<P>(&self, processor: &mut P) -> Result<bool, GeozeroError>

Process feature properties.

Provided Methods§

source

fn property<T>(&self, name: &str) -> Result<T, GeozeroError>

Get property value by name

An error ColumnNotFound can be interpreted as Null value.

source

fn property_n<T>(&self, n: usize) -> Result<T, GeozeroError>

Get property value by number

An error ColumnNotFound can be interpreted as Null value.

source

fn properties(&self) -> Result<HashMap<String, String>, GeozeroError>

Return all properties in a HashMap

Use process_properties for zero-copy access

Object Safety§

This trait is not object safe.

Implementors§