bug correction in geojson
Should not crash if more than one surface
This commit is contained in:
parent
27ceed01fe
commit
146ac487ad
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user