add max height to the city in geojson when the high field is given

This commit is contained in:
Guille Gutierrez 2023-09-29 07:54:46 +02:00
parent 8bd75c790f
commit cf783d8998

View File

@ -116,6 +116,7 @@ class Geojson:
if self._extrusion_height_field is not None: if self._extrusion_height_field is not None:
extrusion_height = float(feature['properties'][self._extrusion_height_field]) extrusion_height = float(feature['properties'][self._extrusion_height_field])
lod = 1 lod = 1
self._max_z = max(self._max_z, extrusion_height)
year_of_construction = None year_of_construction = None
if self._year_of_construction_field is not None: if self._year_of_construction_field is not None:
year_of_construction = int(feature['properties'][self._year_of_construction_field]) year_of_construction = int(feature['properties'][self._year_of_construction_field])