bug correction in geojson

Should not crash if more than one surface
This commit is contained in:
Guille Gutierrez 2023-12-06 15:17:17 -05:00
parent 27ceed01fe
commit 146ac487ad

View File

@ -213,8 +213,6 @@ class Geojson:
polygon = Polygon(coordinates)
polygon.area = igh.ground_area(coordinates)
surfaces[-1] = Surface(polygon, polygon)
if len(surfaces) > 1:
raise ValueError('too many surfaces!!!!')
building = Building(f'{building_name}', surfaces, year_of_construction, function)
for alias in building_aliases:
building.add_alias(alias)