Skip to content

Commit

Permalink
Merge pull request #74 from ocni-dtu/chrk/72_add_categories
Browse files Browse the repository at this point in the history
fix: added more options to building typology, building type and roof …
  • Loading branch information
ocni-dtu authored Sep 9, 2024
2 parents 2981821 + cf344b9 commit 8d84cc9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/models/src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ pub enum RoofType {
PITCHED,
SADDLE,
PYRAMID,
UNKNOWN,
OTHER,
}

Expand Down Expand Up @@ -233,6 +234,7 @@ pub enum BuildingType {
#[allow(non_camel_case_types)]
FIT_OUT_WORKS,
OPERATIONS,
UNKNOWN,
OTHER,
}

Expand All @@ -247,6 +249,9 @@ pub enum BuildingTypology {
INDUSTRIAL,
INFRASTRUCTURE,
AGRICULTURAL,
EDUCATIONAL,
HEALTH,
UNKNOWN,
OTHER,
}

Expand All @@ -260,6 +265,8 @@ impl From<&String> for BuildingTypology {
"industrial" => BuildingTypology::INDUSTRIAL,
"infrastructure" => BuildingTypology::INFRASTRUCTURE,
"agricultural" => BuildingTypology::AGRICULTURAL,
"educational" => BuildingTypology::EDUCATIONAL,
"health" => BuildingTypology::HEALTH,
_ => BuildingTypology::OTHER,
}
}
Expand Down

0 comments on commit 8d84cc9

Please sign in to comment.