From 146ac487ad3ff1fa22ed29772f346def313bf125 Mon Sep 17 00:00:00 2001 From: Guille Date: Wed, 6 Dec 2023 15:17:17 -0500 Subject: [PATCH] bug correction in geojson Should not crash if more than one surface --- hub/imports/geometry/geojson.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/hub/imports/geometry/geojson.py b/hub/imports/geometry/geojson.py index 20b74534..b07a6a7b 100644 --- a/hub/imports/geometry/geojson.py +++ b/hub/imports/geometry/geojson.py @@ -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)