Trait geozero::FeatureProperties
source · [−]pub trait FeatureProperties {
fn process_properties<P: PropertyProcessor>(
&self,
processor: &mut P
) -> Result<bool>;
fn property<T: PropertyReadType>(&self, name: &str) -> Result<T> { ... }
fn property_n<T: PropertyReadType>(&self, n: usize) -> Result<T> { ... }
fn properties(&self) -> Result<HashMap<String, String>> { ... }
}
Expand description
Feature properties processing API
Required Methods
fn process_properties<P: PropertyProcessor>(
&self,
processor: &mut P
) -> Result<bool>
fn process_properties<P: PropertyProcessor>(
&self,
processor: &mut P
) -> Result<bool>
Process feature properties.
Provided Methods
fn property<T: PropertyReadType>(&self, name: &str) -> Result<T>
fn property<T: PropertyReadType>(&self, name: &str) -> Result<T>
Get property value by name
An error ColumnNotFound
can be interpreted as Null value.
fn property_n<T: PropertyReadType>(&self, n: usize) -> Result<T>
fn property_n<T: PropertyReadType>(&self, n: usize) -> Result<T>
Get property value by number
An error ColumnNotFound
can be interpreted as Null value.