diff --git a/README.md b/README.md index e395424..d62a14f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # Documentation -This repository contains the CERC development documentation and it's intended to be linked from different repositories and sites +This repository contains the CERC development documentation, and it's intended to be linked from different repositories and sites diff --git a/support_material/tutorial_0/FZK-Haus-LoD2-KIT-IAI-KHH-B36-V1.gml b/support_material/tutorial_0/FZK-Haus-LoD2-KIT-IAI-KHH-B36-V1.gml new file mode 100644 index 0000000..04c9be7 --- /dev/null +++ b/support_material/tutorial_0/FZK-Haus-LoD2-KIT-IAI-KHH-B36-V1.gml @@ -0,0 +1,240 @@ + + + AC14-FZK-Haus + + + 457842 5439083 111.8 + 457854 5439093 118.317669 + + + + + FZK-Haus (Forschungszentrum Karlsruhe, now KIT), created by Karl-Heinz + Haefele + AC14-FZK-Haus + 2017-01-23 + entirelyAboveTerrain + + 120.00 + + + New Building + + + NO + + 1000 + 1000 + 1000 + 2020 + 1030 + 6.52 + 2 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Outer Wall 1 (West) + + + + + + + 457842 5439088 118.317691453624 + 457842 5439093 115.430940107676 + 457842 5439093 111.8 + 457842 5439083 111.8 + 457842 5439083 115.430940107676 + 457842 5439088 118.317691453624 + + + + + + + + + + + Outer Wall 2 (South) + + + + + + + 457854 5439083 115.430940107676 + 457842 5439083 115.430940107676 + 457842 5439083 111.8 + 457854 5439083 111.8 + 457854 5439083 115.430940107676 + + + + + + + + + + + Outer Wall 3 (East) + + + + + + + 457854 5439088 118.317691453624 + 457854 5439083 115.430940107676 + 457854 5439083 111.8 + 457854 5439093 111.8 + 457854 5439093 115.430940107676 + 457854 5439088 118.317691453624 + + + + + + + + + + + Roof 1 (North) + + + + + + + 457842 5439088 118.317691453624 + 457854 5439088 118.317691453624 + 457854 5439093 115.430940107676 + 457842 5439093 115.430940107676 + 457842 5439088 118.317691453624 + + + + + + + + + + + Outer Wall 4 (North) + + + + + + + 457842 5439093 115.430940107676 + 457854 5439093 115.430940107676 + 457854 5439093 111.8 + 457842 5439093 111.8 + 457842 5439093 115.430940107676 + + + + + + + + + + + Roof 2 (South) + + + + + + + 457854 5439083 115.430940107676 + 457854 5439088 118.317691453624 + 457842 5439088 118.317691453624 + 457842 5439083 115.430940107676 + 457854 5439083 115.430940107676 + + + + + + + + + + + Bodenplatte + Base Surface + + + + + + + 457854 5439083 111.8 + 457842 5439083 111.8 + 457842 5439093 111.8 + 457854 5439093 111.8 + 457854 5439083 111.8 + + + + + + + + + + + + + + Eggenstein-Leopoldshafen + + 4711 + Spöcker Straße + + + 76344 + + + + + + + + + \ No newline at end of file diff --git a/support_material/tutorial_0/main_level_0.py b/support_material/tutorial_0/main_level_0.py new file mode 100644 index 0000000..47ea530 --- /dev/null +++ b/support_material/tutorial_0/main_level_0.py @@ -0,0 +1,15 @@ +from pathlib import Path +from hub.imports.geometry_factory import GeometryFactory +from hub.exports.exports_factory import ExportsFactory + + +gml_file = 'FZK-Haus-LoD2-KIT-IAI-KHH-B36-V1.gml' +city = GeometryFactory('citygml', gml_file).city +path = Path(__file__).parent + +for building in city.buildings: + print(building.name) + print(building.volume) + print(building.floor_area) + +ExportsFactory('obj', city, path).export() diff --git a/support_material/tutorial_1/FZK-Haus-LoD2-KIT-IAI-KHH-B36-V1.gml b/support_material/tutorial_1/FZK-Haus-LoD2-KIT-IAI-KHH-B36-V1.gml new file mode 100644 index 0000000..04c9be7 --- /dev/null +++ b/support_material/tutorial_1/FZK-Haus-LoD2-KIT-IAI-KHH-B36-V1.gml @@ -0,0 +1,240 @@ + + + AC14-FZK-Haus + + + 457842 5439083 111.8 + 457854 5439093 118.317669 + + + + + FZK-Haus (Forschungszentrum Karlsruhe, now KIT), created by Karl-Heinz + Haefele + AC14-FZK-Haus + 2017-01-23 + entirelyAboveTerrain + + 120.00 + + + New Building + + + NO + + 1000 + 1000 + 1000 + 2020 + 1030 + 6.52 + 2 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Outer Wall 1 (West) + + + + + + + 457842 5439088 118.317691453624 + 457842 5439093 115.430940107676 + 457842 5439093 111.8 + 457842 5439083 111.8 + 457842 5439083 115.430940107676 + 457842 5439088 118.317691453624 + + + + + + + + + + + Outer Wall 2 (South) + + + + + + + 457854 5439083 115.430940107676 + 457842 5439083 115.430940107676 + 457842 5439083 111.8 + 457854 5439083 111.8 + 457854 5439083 115.430940107676 + + + + + + + + + + + Outer Wall 3 (East) + + + + + + + 457854 5439088 118.317691453624 + 457854 5439083 115.430940107676 + 457854 5439083 111.8 + 457854 5439093 111.8 + 457854 5439093 115.430940107676 + 457854 5439088 118.317691453624 + + + + + + + + + + + Roof 1 (North) + + + + + + + 457842 5439088 118.317691453624 + 457854 5439088 118.317691453624 + 457854 5439093 115.430940107676 + 457842 5439093 115.430940107676 + 457842 5439088 118.317691453624 + + + + + + + + + + + Outer Wall 4 (North) + + + + + + + 457842 5439093 115.430940107676 + 457854 5439093 115.430940107676 + 457854 5439093 111.8 + 457842 5439093 111.8 + 457842 5439093 115.430940107676 + + + + + + + + + + + Roof 2 (South) + + + + + + + 457854 5439083 115.430940107676 + 457854 5439088 118.317691453624 + 457842 5439088 118.317691453624 + 457842 5439083 115.430940107676 + 457854 5439083 115.430940107676 + + + + + + + + + + + Bodenplatte + Base Surface + + + + + + + 457854 5439083 111.8 + 457842 5439083 111.8 + 457842 5439093 111.8 + 457854 5439093 111.8 + 457854 5439083 111.8 + + + + + + + + + + + + + + Eggenstein-Leopoldshafen + + 4711 + Spöcker Straße + + + 76344 + + + + + + + + + \ No newline at end of file diff --git a/support_material/tutorial_1/main_level_1.py b/support_material/tutorial_1/main_level_1.py new file mode 100644 index 0000000..91c669c --- /dev/null +++ b/support_material/tutorial_1/main_level_1.py @@ -0,0 +1,33 @@ +from hub.imports.geometry_factory import GeometryFactory +from hub.imports.construction_factory import ConstructionFactory +from hub.helpers.dictionaries import Dictionaries +from hub.exports.exports_factory import ExportsFactory + + +# tutorial_0: +gml_file = 'FZK-Haus-LoD2-KIT-IAI-KHH-B36-V1.gml' +city = GeometryFactory('citygml', gml_file, function_to_hub=Dictionaries().montreal_function_to_hub_function).city + +for building in city.buildings: + print(building.name) + print(building.volume) + print(building.floor_area) + + +# Level1: +city1 = city.copy + +for building in city1.buildings: + print ("Construction year of building in city1 is: ", building.year_of_construction) + print ("Building's function in city1 is: " , building.function) + +ConstructionFactory('nrcan',city1).enrich() + +for building in city1.buildings: + for internal_zone in building.internal_zones: + for thermal_zone in internal_zone.thermal_zones: + for thermal_boundary in thermal_zone.thermal_boundaries: + for layer in thermal_boundary.layers: + print(thermal_boundary.internal_surface.type) + print(layer.material.name) +