ecitygml-io 0.0.2-alpha.5

IO operations for processing CityGML data.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::Error;
use crate::gml::codec::core::deserialize_abstract_occupied_space;
use crate::gml::util::CombinedCityGmlElement;
use ecitygml_core::model::construction::AbstractFillingElement;
use egml::io::util::XmlElementSpans;

pub fn deserialize_abstract_filling_element(
    xml_document: &[u8],
    spans: &XmlElementSpans<CombinedCityGmlElement>,
) -> Result<AbstractFillingElement, Error> {
    let abstract_occupied_space = deserialize_abstract_occupied_space(xml_document, spans)?;
    let abstract_filling_element =
        AbstractFillingElement::from_abstract_occupied_space(abstract_occupied_space);

    Ok(abstract_filling_element)
}