From cf783d8998d9d730e9bafbcc1ad8bf167335f97f Mon Sep 17 00:00:00 2001 From: guille Date: Fri, 29 Sep 2023 07:54:46 +0200 Subject: [PATCH] add max height to the city in geojson when the high field is given --- hub/imports/geometry/geojson.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hub/imports/geometry/geojson.py b/hub/imports/geometry/geojson.py index 84269cd1..c92688ee 100644 --- a/hub/imports/geometry/geojson.py +++ b/hub/imports/geometry/geojson.py @@ -116,6 +116,7 @@ class Geojson: if self._extrusion_height_field is not None: extrusion_height = float(feature['properties'][self._extrusion_height_field]) lod = 1 + self._max_z = max(self._max_z, extrusion_height) year_of_construction = None if self._year_of_construction_field is not None: year_of_construction = int(feature['properties'][self._year_of_construction_field])