From 98676e81e0083ce3ee13122280a50d073e7c7a1b Mon Sep 17 00:00:00 2001 From: guille Date: Thu, 26 Oct 2023 07:02:26 +0200 Subject: [PATCH] Bug correction in citygml factory --- hub/imports/geometry/citygml_classes/citygml_lod2.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hub/imports/geometry/citygml_classes/citygml_lod2.py b/hub/imports/geometry/citygml_classes/citygml_lod2.py index 3705f99a..0fa4748a 100644 --- a/hub/imports/geometry/citygml_classes/citygml_lod2.py +++ b/hub/imports/geometry/citygml_classes/citygml_lod2.py @@ -49,6 +49,8 @@ class CityGmlLod2(CityGmlBase): surface_encoding, surface_subtype = cls._surface_encoding(bounded[surface_type]) except NotImplementedError: continue + if 'surfaceMember' not in bounded[surface_type][surface_encoding][surface_subtype]: + continue for member in bounded[surface_type][surface_encoding][surface_subtype]['surfaceMember']: if 'CompositeSurface' in member: for composite_members in member['CompositeSurface']['surfaceMember']: