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']: