From 5dcead4e5d471a96a576f398f1bd0f0975c48a14 Mon Sep 17 00:00:00 2001 From: p_monsalvete Date: Fri, 9 Jun 2023 13:36:21 -0400 Subject: [PATCH] bug in function reading, expecting str and getting int --- hub/imports/geometry/geojson.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hub/imports/geometry/geojson.py b/hub/imports/geometry/geojson.py index a66ab7cf..29b8551e 100644 --- a/hub/imports/geometry/geojson.py +++ b/hub/imports/geometry/geojson.py @@ -121,7 +121,7 @@ class Geojson: year_of_construction = int(feature['properties'][self._year_of_construction_field]) function = None if self._function_field is not None: - function = feature['properties'][self._function_field] + function = str(feature['properties'][self._function_field]) if self._function_to_hub is not None: # use the transformation dictionary to retrieve the proper function if function in self._function_to_hub: