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