diff --git a/city_model_structure/bixi_feature.py b/city_model_structure/bixi_feature.py
index fc214a40..dbb73989 100644
--- a/city_model_structure/bixi_feature.py
+++ b/city_model_structure/bixi_feature.py
@@ -10,8 +10,8 @@ class BixiFeature(CityObject):
"""
BixiFeature(CityObject) class
"""
- def __init__(self, lod, surfaces, feature_type, length):
- super().__init__(lod, surfaces)
+ def __init__(self, lod, surfaces, name, feature_type, length):
+ super().__init__(lod, surfaces, name)
self._feature_type = feature_type
self._length = length
diff --git a/city_model_structure/building.py b/city_model_structure/building.py
index 05c77b0d..8af372a3 100644
--- a/city_model_structure/building.py
+++ b/city_model_structure/building.py
@@ -3,8 +3,7 @@ Building module
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
"""
-from pathlib import Path
-from typing import Union, List
+from typing import List
import matplotlib.patches as patches
import numpy as np
@@ -25,8 +24,7 @@ class Building(CityObject):
"""
def __init__(self, name, lod, surfaces, terrains, year_of_construction, function, lower_corner, attic_heated=0,
basement_heated=0):
- super().__init__(lod, surfaces)
- self._name = name
+ super().__init__(lod, surfaces, name)
self._basement_heated = basement_heated
self._attic_heated = attic_heated
self._terrains = terrains
@@ -137,22 +135,8 @@ class Building(CityObject):
City object heated volume in cubic meters
:return: float
"""
- if self._polyhedron is None:
- self._polyhedron = Polyhedron(self.surfaces)
# ToDo: this need to be the calculated based on the basement and attic heated values
- return self._polyhedron.volume
-
- def stl_export(self, path):
- """
- Export the city object to stl file (city_object_name.stl) to the given path
- :param path: str
- :return: None
- """
- # todo: this is a method just for debugging, it will be soon removed
- if self._polyhedron is None:
- self._polyhedron = Polyhedron(self.surfaces)
- full_path = (Path(path) / (self._name + '.stl')).resolve()
- self._polyhedron.export(full_path)
+ return self.volume
@property
def year_of_construction(self):
@@ -266,13 +250,3 @@ class Building(CityObject):
:return: str
"""
return self._type
-
- @property
- def max_height(self):
- """
- City object maximal height in meters
- :return: float
- """
- if self._polyhedron is None:
- self._polyhedron = Polyhedron(self.surfaces)
- return self._polyhedron.max_z
diff --git a/city_model_structure/city_object.py b/city_model_structure/city_object.py
index 61e0d51f..ffc6d85f 100644
--- a/city_model_structure/city_object.py
+++ b/city_model_structure/city_object.py
@@ -3,6 +3,7 @@ CityObject module
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
"""
+from pathlib import Path
from typing import List, Union
from city_model_structure.surface import Surface
from helpers.geometry_helper import GeometryHelper
@@ -13,7 +14,8 @@ class CityObject:
"""
class CityObject
"""
- def __init__(self, lod, surfaces):
+ def __init__(self, lod, surfaces, name):
+ self._name = name
self._lod = lod
self._surfaces = surfaces
self._polyhedron = None
@@ -65,3 +67,25 @@ class CityObject:
if self._polyhedron is None:
self._polyhedron = Polyhedron(self.surfaces)
return self._polyhedron.centroid
+
+ def stl_export(self, path):
+ """
+ Export the city object to stl file (city_object_name.stl) to the given path
+ :param path: str
+ :return: None
+ """
+ # todo: this is a method just for debugging, it will be soon removed
+ if self._polyhedron is None:
+ self._polyhedron = Polyhedron(self.surfaces)
+ full_path = (Path(path) / (self._name + '.stl')).resolve()
+ self._polyhedron.export(full_path)
+
+ @property
+ def max_height(self):
+ """
+ City object maximal height in meters
+ :return: float
+ """
+ if self._polyhedron is None:
+ self._polyhedron = Polyhedron(self.surfaces)
+ return self._polyhedron.max_z
diff --git a/city_model_structure/composting_plant.py b/city_model_structure/composting_plant.py
index e8472370..c0b26ce2 100644
--- a/city_model_structure/composting_plant.py
+++ b/city_model_structure/composting_plant.py
@@ -10,8 +10,8 @@ class CompostingPlant(CityObject):
"""
CompostingPlant(CityObject) class
"""
- def __init__(self, lod, surfaces, waste_type, capacity):
- super().__init__(lod, surfaces)
+ def __init__(self, lod, surfaces, name, waste_type, capacity):
+ super().__init__(lod, surfaces, name)
self._waste_type = waste_type
self._capacity = capacity
diff --git a/city_model_structure/tree.py b/city_model_structure/tree.py
index 58de1d68..3f86fe35 100644
--- a/city_model_structure/tree.py
+++ b/city_model_structure/tree.py
@@ -10,8 +10,8 @@ class Tree(CityObject):
"""
Tree(CityObject) class
"""
- def __init__(self, lod, surfaces, height, canopy):
- super().__init__(lod, surfaces)
+ def __init__(self, lod, surfaces, name, height, canopy):
+ super().__init__(lod, surfaces, name)
self._height = height
self._canopy = canopy
diff --git a/docs/build/doctrees/environment.pickle b/docs/build/doctrees/environment.pickle
index 10714635..8e8302e6 100644
Binary files a/docs/build/doctrees/environment.pickle and b/docs/build/doctrees/environment.pickle differ
diff --git a/docs/build/doctrees/index.doctree b/docs/build/doctrees/index.doctree
index 17f8e759..c2755e03 100644
Binary files a/docs/build/doctrees/index.doctree and b/docs/build/doctrees/index.doctree differ
diff --git a/docs/build/html/_modules/city_model_structure/polyhedron.html b/docs/build/html/_modules/city_model_structure/polyhedron.html
index 3bd77ebf..dad06d11 100644
--- a/docs/build/html/_modules/city_model_structure/polyhedron.html
+++ b/docs/build/html/_modules/city_model_structure/polyhedron.html
@@ -197,6 +197,14 @@
z_max = max(bounds[:, 2])
return z_max
+ @property
+ def centroid(self):
+ """
+ Polyhedron centroid
+ :return: [x,y,z]
+ """
+ return self._polyhedron_mesh.centroid
+
[docs] def export(self, full_path):
"""
Export the polyhedron to stl given file
diff --git a/docs/build/html/genindex.html b/docs/build/html/genindex.html
index 466d2a2c..9febf3bf 100644
--- a/docs/build/html/genindex.html
+++ b/docs/build/html/genindex.html
@@ -195,6 +195,8 @@
canopy() (city_model_structure.tree.Tree property)
capacity() (city_model_structure.composting_plant.CompostingPlant property)
+
+
centroid() (city_model_structure.polyhedron.Polyhedron property)
City (class in city_model_structure.city)
@@ -473,6 +475,8 @@
|
- - volume() (city_model_structure.building.Building property)
+
- volume() (city_model_structure.city_object.CityObject property)
- (city_model_structure.polyhedron.Polyhedron property)
diff --git a/docs/build/html/index.html b/docs/build/html/index.html
index 7d697af7..16e44bb1 100644
--- a/docs/build/html/index.html
+++ b/docs/build/html/index.html
@@ -215,8 +215,15 @@ SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
-
-class
city_model_structure.city_object. CityObject (lod)[source]
+class city_model_structure.city_object. CityObject (lod, surfaces)[source]
class CityObject
+
+-
+property
location
+City object location
+:return: [x,y,z]
+
+
-
property
lod
@@ -224,6 +231,28 @@ Copyright © 2020 Project Author Guille Gutierrez
+
+-
+
surface (name) → Optional[city_model_structure.surface.Surface][source]
+Get the city object surface with a given name
+:param name: str
+:return: None or Surface
+
+
+
+-
+property
surfaces
+City object surfaces
+:return: [Surface]
+
+
+
+-
+property
volume
+City object volume in cubic meters
+:return: float
+
+
@@ -234,7 +263,7 @@ SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
-
-class
city_model_structure.bixi_feature. BixiFeature (lod, feature_type, length)[source]
+class city_model_structure.bixi_feature. BixiFeature (lod, surfaces, feature_type, length)[source]
BixiFeature(CityObject) class
-
@@ -333,21 +362,6 @@ Copyright © 2020 Project Author Guille Gutierrez
-
--
-
surface (name) → Optional[city_model_structure.surface.Surface][source]
-Get the city object surface with a given name
-:param name: str
-:return: None or Surface
-
-
-
--
-property
surfaces
-City object surfaces
-:return: [Surface]
-
-
-
property
terrains
@@ -376,13 +390,6 @@ Copyright © 2020 Project Author Guille Gutierrez
-
--
-property
volume
-City object volume in cubic meters
-:return: float
-
-
-
property
year_of_construction
@@ -400,7 +407,7 @@ SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
-
-class
city_model_structure.composting_plant. CompostingPlant (lod, waste_type, capacity)[source]
+class city_model_structure.composting_plant. CompostingPlant (lod, surfaces, waste_type, capacity)[source]
CompostingPlant(CityObject) class
-
@@ -426,7 +433,7 @@ SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
-
-class
city_model_structure.tree. Tree (lod, height, canopy)[source]
+class city_model_structure.tree. Tree (lod, surfaces, height, canopy)[source]
Tree(CityObject) class
-
@@ -588,6 +595,13 @@ Copyright © 2020 Project Author Guille Gutierrez
class
city_model_structure.polyhedron. Polyhedron (surfaces)[source]
Polyhedron class
+
+-
+property
centroid
+Polyhedron centroid
+:return: [x,y,z]
+
+
-
export (full_path)[source]
diff --git a/docs/build/html/objects.inv b/docs/build/html/objects.inv
index 5a3efd69..72a59da7 100644
Binary files a/docs/build/html/objects.inv and b/docs/build/html/objects.inv differ
diff --git a/docs/build/html/searchindex.js b/docs/build/html/searchindex.js
index 799a316b..e09cf4a5 100644
--- a/docs/build/html/searchindex.js
+++ b/docs/build/html/searchindex.js
@@ -1 +1 @@
-Search.setIndex({docnames:["index"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":3,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":2,"sphinx.domains.rst":2,"sphinx.domains.std":1,"sphinx.ext.todo":2,"sphinx.ext.viewcode":1,sphinx:56},filenames:["index.rst"],objects:{"city_model_structure.bixi_feature":{BixiFeature:[0,1,1,""]},"city_model_structure.bixi_feature.BixiFeature":{feature_type:[0,2,1,""],length:[0,2,1,""]},"city_model_structure.building":{Building:[0,1,1,""]},"city_model_structure.building.Building":{"function":[0,2,1,""],attic_heated:[0,2,1,""],average_storey_height:[0,2,1,""],basement_heated:[0,2,1,""],foot_print:[0,2,1,""],heated_volume:[0,2,1,""],max_height:[0,2,1,""],name:[0,2,1,""],stl_export:[0,2,1,""],storeys_above_ground:[0,2,1,""],surface:[0,2,1,""],surfaces:[0,2,1,""],terrains:[0,2,1,""],thermal_zones:[0,2,1,""],type:[0,2,1,""],usage_zones:[0,2,1,""],volume:[0,2,1,""],year_of_construction:[0,2,1,""]},"city_model_structure.city":{City:[0,1,1,""]},"city_model_structure.city.City":{add_city_object:[0,2,1,""],bixi_features:[0,2,1,""],buildings:[0,2,1,""],city_object:[0,2,1,""],city_objects:[0,2,1,""],composting_plants:[0,2,1,""],country_code:[0,2,1,""],lower_corner:[0,2,1,""],name:[0,2,1,""],srs_name:[0,2,1,""],trees:[0,2,1,""],upper_corner:[0,2,1,""]},"city_model_structure.city_object":{CityObject:[0,1,1,""]},"city_model_structure.city_object.CityObject":{lod:[0,2,1,""]},"city_model_structure.composting_plant":{CompostingPlant:[0,1,1,""]},"city_model_structure.composting_plant.CompostingPlant":{capacity:[0,2,1,""],waste_type:[0,2,1,""]},"city_model_structure.internal_gains":{InternalGains:[0,1,1,""]},"city_model_structure.internal_gains.InternalGains":{average_internal_gain:[0,2,1,""],convective_fraction:[0,2,1,""],latent_fraction:[0,2,1,""],radiative_fraction:[0,2,1,""]},"city_model_structure.layer":{Layer:[0,1,1,""]},"city_model_structure.layer.Layer":{material:[0,2,1,""],thickness:[0,2,1,""]},"city_model_structure.material":{Material:[0,1,1,""]},"city_model_structure.material.Material":{conductivity:[0,2,1,""],density:[0,2,1,""],no_mass:[0,2,1,""],solar_absorptance:[0,2,1,""],specific_heat:[0,2,1,""],thermal_absorptance:[0,2,1,""],thermal_resistance:[0,2,1,""],visible_absorptance:[0,2,1,""]},"city_model_structure.polyhedron":{Polyhedron:[0,1,1,""]},"city_model_structure.polyhedron.Polyhedron":{"export":[0,2,1,""],faces:[0,2,1,""],max_z:[0,2,1,""],vertices:[0,2,1,""],volume:[0,2,1,""]},"city_model_structure.surface":{Surface:[0,1,1,""]},"city_model_structure.surface.Surface":{add_shared:[0,2,1,""],area:[0,2,1,""],area_above_ground:[0,2,1,""],area_below_ground:[0,2,1,""],azimuth:[0,2,1,""],global_irradiance_hour:[0,2,1,""],global_irradiance_month:[0,2,1,""],ground_points:[0,2,1,""],ground_polygon:[0,2,1,""],inclination:[0,2,1,""],intersect:[0,2,1,""],min_x:[0,2,1,""],min_y:[0,2,1,""],min_z:[0,2,1,""],name:[0,2,1,""],normal:[0,2,1,""],parent:[0,2,1,""],points:[0,2,1,""],points_list:[0,2,1,""],polygon:[0,2,1,""],projection:[0,2,1,""],shapely:[0,2,1,""],shared:[0,2,1,""],swr:[0,2,1,""],type:[0,2,1,""]},"city_model_structure.thermal_boundary":{ThermalBoundary:[0,1,1,""]},"city_model_structure.thermal_boundary.ThermalBoundary":{area:[0,2,1,""],area_above_ground:[0,2,1,""],area_below_ground:[0,2,1,""],azimuth:[0,2,1,""],delimits:[0,2,1,""],inclination:[0,2,1,""],layers:[0,2,1,""],outside_solar_absorptance:[0,2,1,""],outside_thermal_absorptance:[0,2,1,""],outside_visible_absorptance:[0,2,1,""],shortwave_reflectance:[0,2,1,""],thermal_openings:[0,2,1,""],type:[0,2,1,""],u_value:[0,2,1,""],window_area:[0,2,1,""],window_ratio:[0,2,1,""]},"city_model_structure.thermal_opening":{ThermalOpening:[0,1,1,""]},"city_model_structure.thermal_opening.ThermalOpening":{back_side_solar_transmittance_at_normal_incidence:[0,2,1,""],conductivity:[0,2,1,""],frame_ratio:[0,2,1,""],front_side_solar_transmittance_at_normal_incidence:[0,2,1,""],g_value:[0,2,1,""],openable_ratio:[0,2,1,""],overall_u_value:[0,2,1,""],thickness:[0,2,1,""]},"city_model_structure.thermal_zone":{ThermalZone:[0,1,1,""]},"city_model_structure.thermal_zone.ThermalZone":{additional_thermal_bridge_u_value:[0,2,1,""],bounded:[0,2,1,""],cooled:[0,2,1,""],effective_thermal_capacity:[0,2,1,""],floor_area:[0,2,1,""],heated:[0,2,1,""],indirectly_heated_area_ratio:[0,2,1,""],infiltration_rate_system_off:[0,2,1,""],infiltration_rate_system_on:[0,2,1,""],surfaces:[0,2,1,""],usage_zones:[0,2,1,""]},"city_model_structure.tree":{Tree:[0,1,1,""]},"city_model_structure.tree.Tree":{canopy:[0,2,1,""],height:[0,2,1,""]},"city_model_structure.usage_zone":{UsageZone:[0,1,1,""]},"city_model_structure.usage_zone.UsageZone":{cooling_setpoint:[0,2,1,""],days_year:[0,2,1,""],heating_setback:[0,2,1,""],heating_setpoint:[0,2,1,""],hours_day:[0,2,1,""],internal_gains:[0,2,1,""],mechanical_air_change:[0,2,1,""],usage:[0,2,1,""]},"geometry.geometry_factory":{GeometryFactory:[0,1,1,""]},"geometry.geometry_factory.GeometryFactory":{city:[0,2,1,""]},"physics.physics_factory":{PhysicsFactory:[0,1,1,""]},"physics.physics_factory.PhysicsFactory":{factory:[0,2,1,""]},"usage.usage_factory":{UsageFactory:[0,1,1,""]},"usage.usage_factory.UsageFactory":{factory:[0,2,1,""]},city_model_structure:{bixi_feature:[0,0,0,"-"],building:[0,0,0,"-"],city:[0,0,0,"-"],city_object:[0,0,0,"-"],composting_plant:[0,0,0,"-"],internal_gains:[0,0,0,"-"],layer:[0,0,0,"-"],material:[0,0,0,"-"],polyhedron:[0,0,0,"-"],surface:[0,0,0,"-"],thermal_boundary:[0,0,0,"-"],thermal_opening:[0,0,0,"-"],thermal_zone:[0,0,0,"-"],tree:[0,0,0,"-"],usage_zone:[0,0,0,"-"]},geometry:{geometry_factory:[0,0,0,"-"]},physics:{physics_factory:[0,0,0,"-"]},usage:{usage_factory:[0,0,0,"-"]}},objnames:{"0":["py","module","Python module"],"1":["py","class","Python class"],"2":["py","method","Python method"]},objtypes:{"0":"py:module","1":"py:class","2":"py:method"},terms:{"boolean":0,"class":0,"export":0,"float":0,"function":0,"int":0,"return":0,"short":0,"true":0,NOT:0,abov:0,absorpt:0,add:0,add_city_object:0,add_shar:0,additional_thermal_bridge_u_valu:0,air:0,ani:0,area:0,area_above_ground:0,area_below_ground:0,assign:0,attic:0,attic_h:0,author:0,averag:0,average_internal_gain:0,average_storey_height:0,azimuth:0,back:0,back_side_solar_transmittance_at_normal_incid:0,base_path:0,basement:0,basement_h:0,belong:0,below:0,between:0,bixi:[],bixi_featur:0,bixifeatur:0,bound:0,bridg:0,can:0,canopi:0,capac:0,celsiu:0,chang:0,check:0,city_model_structur:0,city_object:0,city_object_nam:0,cityobject:0,code:0,code_of_conduct:0,coeffici:0,compost:[],composting_pl:0,compostingpl:0,concordia:0,conduct:0,configur:0,construct:0,contribut:0,convect:0,convective_fract:0,cool:0,cooling_setpoint:0,coordin:0,copyright:0,corner:0,countri:0,country_cod:0,cubic:0,dai:0,data:0,days_year:0,delimit:0,densiti:0,detail:0,effect:0,effective_thermal_capac:0,enrich:0,except:0,extern:0,face:0,fals:0,featur:[],feature_typ:0,file_typ:0,flag:0,floor:0,floor_area:0,foot:0,foot_print:0,format:0,fraction:0,frame:0,frame_ratio:0,from:0,front:0,front_side_solar_transmittance_at_normal_incid:0,full_path:0,g_valu:0,geometr:0,geometry_factori:0,geometryfactori:0,get:0,given:0,global:0,global_irradiance_hour:0,global_irradiance_month:0,grad:0,ground:0,ground_point:0,ground_polygon:0,guill:0,guillermo:0,gutierrez:0,gutierrezmorot:0,handler:0,heat:0,heated_volum:0,heating_setback:0,heating_setpoint:0,height:0,hour:0,hours_dai:0,identifi:0,implement:0,incid:0,inclin:0,index:0,indirectli:0,indirectly_heated_area_ratio:0,infiltr:0,infiltration_rate_system_off:0,infiltration_rate_system_on:0,inform:0,ini:0,internal_gain:0,internalgain:0,intersect:0,intersection_area:0,irradi:0,is_project:0,kgk:0,latent:0,latent_fract:0,later:0,length:0,level:0,lgpl:0,licens:0,list:0,load:0,lod:0,lower:0,lower_corn:0,m2k:0,mass:0,matrix:0,max_height:0,max_z:0,maxim:0,mechan:0,mechanical_air_chang:0,meter:0,min_i:0,min_x:0,min_z:0,minim:0,modul:0,month:0,name:0,ndarrai:0,new_city_object:0,no_mass:0,none:0,normal:0,notimplementederror:0,number:0,off:0,openable_ratio:0,option:0,outsid:0,outside_solar_absorpt:0,outside_thermal_absorpt:0,outside_visible_absorpt:0,overal:0,overall_u_valu:0,page:0,param:0,parent:0,path:0,per:0,percent:0,physics_factori:0,physicsfactor:0,physicsfactori:0,plant:[],point:0,points_list:0,polygon:0,print:0,project:0,properti:0,pyguid:0,pyny3d:0,radi:0,radian:0,radiative_fract:0,rate:0,ratio:0,readm:0,reflect:0,region:0,remove_last:0,resist:0,retriev:0,roof:0,search:0,set:0,setback:0,setpoint:0,shape:0,share:0,shortwav:0,shortwave_reflect:0,side:0,solar:0,solar_absorpt:0,some:0,sourc:0,spdx:0,specif:0,specific_heat:0,squar:0,srs:0,srs_name:0,stl:0,stl_export:0,storei:0,storeys_above_ground:0,str:0,surface_id:0,surface_typ:0,swr:0,system:0,terrain:0,thermal_absorpt:0,thermal_boundari:0,thermal_open:0,thermal_resist:0,thermal_zon:0,thermalboundari:0,thermalopen:0,thermalzon:0,thi:0,thick:0,transmitt:0,treat:0,tree:[],type:0,u_valu:0,upper:0,upper_corn:0,usage_factori:0,usage_zon:0,usagefactori:0,usagezon:0,valu:0,vector:0,vertic:0,visibl:0,visible_absorpt:0,volum:0,wall:0,waste_typ:0,wave:0,window:0,window_area:0,window_ratio:0,year:0,year_of_construct:0},titles:["Welcome to CERC libs\u2019s documentation!"],titleterms:{addit:0,bixi:0,boundari:0,build:0,cerc:0,citi:0,compost:0,document:0,factori:0,featur:0,file:0,gain:0,geometri:0,indic:0,intern:0,layer:0,lib:0,materi:0,model:0,object:0,open:0,physic:0,plant:0,polyhedron:0,structur:0,surfac:0,tabl:0,thermal:0,tree:0,usag:0,welcom:0,zone:0}})
\ No newline at end of file
+Search.setIndex({docnames:["index"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":3,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":2,"sphinx.domains.rst":2,"sphinx.domains.std":1,"sphinx.ext.todo":2,"sphinx.ext.viewcode":1,sphinx:56},filenames:["index.rst"],objects:{"city_model_structure.bixi_feature":{BixiFeature:[0,1,1,""]},"city_model_structure.bixi_feature.BixiFeature":{feature_type:[0,2,1,""],length:[0,2,1,""]},"city_model_structure.building":{Building:[0,1,1,""]},"city_model_structure.building.Building":{"function":[0,2,1,""],attic_heated:[0,2,1,""],average_storey_height:[0,2,1,""],basement_heated:[0,2,1,""],foot_print:[0,2,1,""],heated_volume:[0,2,1,""],max_height:[0,2,1,""],name:[0,2,1,""],stl_export:[0,2,1,""],storeys_above_ground:[0,2,1,""],terrains:[0,2,1,""],thermal_zones:[0,2,1,""],type:[0,2,1,""],usage_zones:[0,2,1,""],year_of_construction:[0,2,1,""]},"city_model_structure.city":{City:[0,1,1,""]},"city_model_structure.city.City":{add_city_object:[0,2,1,""],bixi_features:[0,2,1,""],buildings:[0,2,1,""],city_object:[0,2,1,""],city_objects:[0,2,1,""],composting_plants:[0,2,1,""],country_code:[0,2,1,""],lower_corner:[0,2,1,""],name:[0,2,1,""],srs_name:[0,2,1,""],trees:[0,2,1,""],upper_corner:[0,2,1,""]},"city_model_structure.city_object":{CityObject:[0,1,1,""]},"city_model_structure.city_object.CityObject":{location:[0,2,1,""],lod:[0,2,1,""],surface:[0,2,1,""],surfaces:[0,2,1,""],volume:[0,2,1,""]},"city_model_structure.composting_plant":{CompostingPlant:[0,1,1,""]},"city_model_structure.composting_plant.CompostingPlant":{capacity:[0,2,1,""],waste_type:[0,2,1,""]},"city_model_structure.internal_gains":{InternalGains:[0,1,1,""]},"city_model_structure.internal_gains.InternalGains":{average_internal_gain:[0,2,1,""],convective_fraction:[0,2,1,""],latent_fraction:[0,2,1,""],radiative_fraction:[0,2,1,""]},"city_model_structure.layer":{Layer:[0,1,1,""]},"city_model_structure.layer.Layer":{material:[0,2,1,""],thickness:[0,2,1,""]},"city_model_structure.material":{Material:[0,1,1,""]},"city_model_structure.material.Material":{conductivity:[0,2,1,""],density:[0,2,1,""],no_mass:[0,2,1,""],solar_absorptance:[0,2,1,""],specific_heat:[0,2,1,""],thermal_absorptance:[0,2,1,""],thermal_resistance:[0,2,1,""],visible_absorptance:[0,2,1,""]},"city_model_structure.polyhedron":{Polyhedron:[0,1,1,""]},"city_model_structure.polyhedron.Polyhedron":{"export":[0,2,1,""],centroid:[0,2,1,""],faces:[0,2,1,""],max_z:[0,2,1,""],vertices:[0,2,1,""],volume:[0,2,1,""]},"city_model_structure.surface":{Surface:[0,1,1,""]},"city_model_structure.surface.Surface":{add_shared:[0,2,1,""],area:[0,2,1,""],area_above_ground:[0,2,1,""],area_below_ground:[0,2,1,""],azimuth:[0,2,1,""],global_irradiance_hour:[0,2,1,""],global_irradiance_month:[0,2,1,""],ground_points:[0,2,1,""],ground_polygon:[0,2,1,""],inclination:[0,2,1,""],intersect:[0,2,1,""],min_x:[0,2,1,""],min_y:[0,2,1,""],min_z:[0,2,1,""],name:[0,2,1,""],normal:[0,2,1,""],parent:[0,2,1,""],points:[0,2,1,""],points_list:[0,2,1,""],polygon:[0,2,1,""],projection:[0,2,1,""],shapely:[0,2,1,""],shared:[0,2,1,""],swr:[0,2,1,""],type:[0,2,1,""]},"city_model_structure.thermal_boundary":{ThermalBoundary:[0,1,1,""]},"city_model_structure.thermal_boundary.ThermalBoundary":{area:[0,2,1,""],area_above_ground:[0,2,1,""],area_below_ground:[0,2,1,""],azimuth:[0,2,1,""],delimits:[0,2,1,""],inclination:[0,2,1,""],layers:[0,2,1,""],outside_solar_absorptance:[0,2,1,""],outside_thermal_absorptance:[0,2,1,""],outside_visible_absorptance:[0,2,1,""],shortwave_reflectance:[0,2,1,""],thermal_openings:[0,2,1,""],type:[0,2,1,""],u_value:[0,2,1,""],window_area:[0,2,1,""],window_ratio:[0,2,1,""]},"city_model_structure.thermal_opening":{ThermalOpening:[0,1,1,""]},"city_model_structure.thermal_opening.ThermalOpening":{back_side_solar_transmittance_at_normal_incidence:[0,2,1,""],conductivity:[0,2,1,""],frame_ratio:[0,2,1,""],front_side_solar_transmittance_at_normal_incidence:[0,2,1,""],g_value:[0,2,1,""],openable_ratio:[0,2,1,""],overall_u_value:[0,2,1,""],thickness:[0,2,1,""]},"city_model_structure.thermal_zone":{ThermalZone:[0,1,1,""]},"city_model_structure.thermal_zone.ThermalZone":{additional_thermal_bridge_u_value:[0,2,1,""],bounded:[0,2,1,""],cooled:[0,2,1,""],effective_thermal_capacity:[0,2,1,""],floor_area:[0,2,1,""],heated:[0,2,1,""],indirectly_heated_area_ratio:[0,2,1,""],infiltration_rate_system_off:[0,2,1,""],infiltration_rate_system_on:[0,2,1,""],surfaces:[0,2,1,""],usage_zones:[0,2,1,""]},"city_model_structure.tree":{Tree:[0,1,1,""]},"city_model_structure.tree.Tree":{canopy:[0,2,1,""],height:[0,2,1,""]},"city_model_structure.usage_zone":{UsageZone:[0,1,1,""]},"city_model_structure.usage_zone.UsageZone":{cooling_setpoint:[0,2,1,""],days_year:[0,2,1,""],heating_setback:[0,2,1,""],heating_setpoint:[0,2,1,""],hours_day:[0,2,1,""],internal_gains:[0,2,1,""],mechanical_air_change:[0,2,1,""],usage:[0,2,1,""]},"geometry.geometry_factory":{GeometryFactory:[0,1,1,""]},"geometry.geometry_factory.GeometryFactory":{city:[0,2,1,""]},"physics.physics_factory":{PhysicsFactory:[0,1,1,""]},"physics.physics_factory.PhysicsFactory":{factory:[0,2,1,""]},"usage.usage_factory":{UsageFactory:[0,1,1,""]},"usage.usage_factory.UsageFactory":{factory:[0,2,1,""]},city_model_structure:{bixi_feature:[0,0,0,"-"],building:[0,0,0,"-"],city:[0,0,0,"-"],city_object:[0,0,0,"-"],composting_plant:[0,0,0,"-"],internal_gains:[0,0,0,"-"],layer:[0,0,0,"-"],material:[0,0,0,"-"],polyhedron:[0,0,0,"-"],surface:[0,0,0,"-"],thermal_boundary:[0,0,0,"-"],thermal_opening:[0,0,0,"-"],thermal_zone:[0,0,0,"-"],tree:[0,0,0,"-"],usage_zone:[0,0,0,"-"]},geometry:{geometry_factory:[0,0,0,"-"]},physics:{physics_factory:[0,0,0,"-"]},usage:{usage_factory:[0,0,0,"-"]}},objnames:{"0":["py","module","Python module"],"1":["py","class","Python class"],"2":["py","method","Python method"]},objtypes:{"0":"py:module","1":"py:class","2":"py:method"},terms:{"boolean":0,"class":0,"export":0,"float":0,"function":0,"int":0,"return":0,"short":0,"true":0,NOT:0,abov:0,absorpt:0,add:0,add_city_object:0,add_shar:0,additional_thermal_bridge_u_valu:0,air:0,ani:0,area:0,area_above_ground:0,area_below_ground:0,assign:0,attic:0,attic_h:0,author:0,averag:0,average_internal_gain:0,average_storey_height:0,azimuth:0,back:0,back_side_solar_transmittance_at_normal_incid:0,base_path:0,basement:0,basement_h:0,belong:0,below:0,between:0,bixi_featur:0,bixifeatur:0,bound:0,bridg:0,can:0,canopi:0,capac:0,celsiu:0,centroid:0,chang:0,check:0,city_model_structur:0,city_object:0,city_object_nam:0,cityobject:0,code:0,code_of_conduct:0,coeffici:0,composting_pl:0,compostingpl:0,concordia:0,conduct:0,configur:0,construct:0,contribut:0,convect:0,convective_fract:0,cool:0,cooling_setpoint:0,coordin:0,copyright:0,corner:0,countri:0,country_cod:0,cubic:0,dai:0,data:0,days_year:0,delimit:0,densiti:0,detail:0,effect:0,effective_thermal_capac:0,enrich:0,except:0,extern:0,face:0,fals:0,feature_typ:0,file_typ:0,flag:0,floor:0,floor_area:0,foot:0,foot_print:0,format:0,fraction:0,frame:0,frame_ratio:0,from:0,front:0,front_side_solar_transmittance_at_normal_incid:0,full_path:0,g_valu:0,geometr:0,geometry_factori:0,geometryfactori:0,get:0,given:0,global:0,global_irradiance_hour:0,global_irradiance_month:0,grad:0,ground:0,ground_point:0,ground_polygon:0,guill:0,guillermo:0,gutierrez:0,gutierrezmorot:0,handler:0,heat:0,heated_volum:0,heating_setback:0,heating_setpoint:0,height:0,hour:0,hours_dai:0,identifi:0,implement:0,incid:0,inclin:0,index:0,indirectli:0,indirectly_heated_area_ratio:0,infiltr:0,infiltration_rate_system_off:0,infiltration_rate_system_on:0,inform:0,ini:0,internal_gain:0,internalgain:0,intersect:0,intersection_area:0,irradi:0,is_project:0,kgk:0,latent:0,latent_fract:0,later:0,length:0,level:0,lgpl:0,licens:0,list:0,load:0,locat:0,lod:0,lower:0,lower_corn:0,m2k:0,mass:0,matrix:0,max_height:0,max_z:0,maxim:0,mechan:0,mechanical_air_chang:0,meter:0,min_i:0,min_x:0,min_z:0,minim:0,modul:0,month:0,name:0,ndarrai:0,new_city_object:0,no_mass:0,none:0,normal:0,notimplementederror:0,number:0,off:0,openable_ratio:0,option:0,outsid:0,outside_solar_absorpt:0,outside_thermal_absorpt:0,outside_visible_absorpt:0,overal:0,overall_u_valu:0,page:0,param:0,parent:0,path:0,per:0,percent:0,physics_factori:0,physicsfactor:0,physicsfactori:0,point:0,points_list:0,polygon:0,print:0,project:0,properti:0,pyguid:0,pyny3d:0,radi:0,radian:0,radiative_fract:0,rate:0,ratio:0,readm:0,reflect:0,region:0,remove_last:0,resist:0,retriev:0,roof:0,search:0,set:0,setback:0,setpoint:0,shape:0,share:0,shortwav:0,shortwave_reflect:0,side:0,solar:0,solar_absorpt:0,some:0,sourc:0,spdx:0,specif:0,specific_heat:0,squar:0,srs:0,srs_name:0,stl:0,stl_export:0,storei:0,storeys_above_ground:0,str:0,surface_id:0,surface_typ:0,swr:0,system:0,terrain:0,thermal_absorpt:0,thermal_boundari:0,thermal_open:0,thermal_resist:0,thermal_zon:0,thermalboundari:0,thermalopen:0,thermalzon:0,thi:0,thick:0,transmitt:0,treat:0,type:0,u_valu:0,upper:0,upper_corn:0,usage_factori:0,usage_zon:0,usagefactori:0,usagezon:0,valu:0,vector:0,vertic:0,visibl:0,visible_absorpt:0,volum:0,wall:0,waste_typ:0,wave:0,window:0,window_area:0,window_ratio:0,year:0,year_of_construct:0},titles:["Welcome to CERC libs\u2019s documentation!"],titleterms:{addit:0,bixi:0,boundari:0,build:0,cerc:0,citi:0,compost:0,document:0,factori:0,featur:0,file:0,gain:0,geometri:0,indic:0,intern:0,layer:0,lib:0,materi:0,model:0,object:0,open:0,physic:0,plant:0,polyhedron:0,structur:0,surfac:0,tabl:0,thermal:0,tree:0,usag:0,welcom:0,zone:0}})
\ No newline at end of file
diff --git a/geometry/geometry_feeders/city_gml.py b/geometry/geometry_feeders/city_gml.py
index b801c965..0083305a 100644
--- a/geometry/geometry_feeders/city_gml.py
+++ b/geometry/geometry_feeders/city_gml.py
@@ -32,7 +32,7 @@ class CityGml:
'xmlns="http://www.opengis.net/citygml/2.0': None,
'http://www.opengis.net/citygml/2.0': None
}, force_list=('cityObjectMember', 'curveMember'))
- self._cityObjects = None
+ self._city_objects = None
self._geometry = GeometryHelper()
envelope = self._gml['CityModel']['boundedBy']['Envelope']
if '#text' in envelope['lowerCorner']:
|