From dd7bd337dda42886ec5c8b5d160c8fb83ac94a11 Mon Sep 17 00:00:00 2001 From: guille Date: Fri, 25 Nov 2022 15:32:31 -0500 Subject: [PATCH] Correct bug in Gml Lod --- imports/geometry/citygml.py | 2 +- unittests/test_construction_factory.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/imports/geometry/citygml.py b/imports/geometry/citygml.py index 70d2b01f..a50ecea2 100644 --- a/imports/geometry/citygml.py +++ b/imports/geometry/citygml.py @@ -23,7 +23,7 @@ class CityGml: """ def __init__(self, path): self._city = None - self._lod = 0 + self._lod = None self._lod1_tags = ['lod1Solid', 'lod1MultiSurface'] self._lod2_tags = ['lod2Solid', 'lod2MultiSurface', 'lod2MultiCurve'] self._lower_corner = None diff --git a/unittests/test_construction_factory.py b/unittests/test_construction_factory.py index 3353ca29..228256b7 100644 --- a/unittests/test_construction_factory.py +++ b/unittests/test_construction_factory.py @@ -28,6 +28,7 @@ class TestConstructionFactory(TestCase): file_path = (self._example_path / file).resolve() self._city = GeometryFactory('citygml', path=file_path).city self.assertIsNotNone(self._city, 'city is none') + self.assertIsNotNone(self._city.level_of_detail.geometry, 'wrong construction level of detail') return self._city @staticmethod