Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for #82 #83

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nusamai-plateau/examples/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fn example_toplevel_dispatcher<R: BufRead>(

match st.parse_children(|st| match st.current_path() {
b"core:cityObjectMember" => {
let mut cityobj: nusamai_plateau::models::CityObject = Default::default();
let mut cityobj: nusamai_plateau::models::TopLevelCityObject = Default::default();
cityobj.parse(st)?;
let geometries = st.collect_geometries();

Expand Down
4 changes: 2 additions & 2 deletions nusamai-plateau/src/models/cityfurniture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ pub struct CityFurniture {
pub frn_facility_id_attribute: Option<uro::FacilityIdAttribute>,

#[citygml(path = b"uro:frnFacilityAttribute")]
pub frn_facility_attribute: Vec<uro::FacilityAttribute>,
pub frn_facility_attribute: Vec<uro::FacilityAttributeProperty>,

#[citygml(path = b"uro:frnDmAttribute")]
pub frn_dm_attribute: Vec<uro::DmAttribute>,
pub frn_dm_attribute: Vec<uro::DmAttributeProperty>,
}
10 changes: 8 additions & 2 deletions nusamai-plateau/src/models/iur/uro/mod.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
//! Urban Object Module

mod city_furniture;
mod common;
mod dm;
mod facility;
mod facility_id;
mod facility_type;
mod other_construction;
mod underground_building;
mod utility_network;

pub use city_furniture::*;
pub use common::*;
pub use dm::*;
pub use facility::*;
pub use facility_id::*;
pub use facility_type::*;
pub use other_construction::*;
pub use underground_building::*;
// pub use utility_network::*;
2 changes: 1 addition & 1 deletion nusamai/src/source/citygml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ fn toplevel_dispatcher<R: BufRead>(
Ok(())
}
b"core:cityObjectMember" => {
let mut cityobj: nusamai_plateau::models::CityObject = Default::default();
let mut cityobj: nusamai_plateau::models::TopLevelCityObject = Default::default();
cityobj.parse(st)?;
let geometries = st.collect_geometries();

Expand Down