Expand description
ecitygml
is a library for processing CityGML data.
Only reading of CityGML version 3.0 datasets is currently supported.
§Example
To get started, read a CityGML 3.0 dataset into memory and print all GML IDs of the building.
use std::path::PathBuf;
use ecitygml_io::CitygmlReader;
// read the CityGML dataset
let file_path = PathBuf::from("example/city_model.gml");
let citygml_model = CitygmlReader::from_path(file_path)
.expect("file extension should be correct")
.finish()
.expect("parsing should work");
// iterate over all buildings
for current_building in citygml_model.building {
println!(
"GML ID of the current building: {}",
current_building.occupied_space.space.city_object.gml.id
);
}
Re-exports§
pub use ecitygml_io as io;
pub use ecitygml_transform as transform;