Correct bug in Gml Lod

This commit is contained in:
Guille Gutierrez 2022-11-25 15:32:31 -05:00
parent a0445200a5
commit dd7bd337dd
2 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,7 @@ class CityGml:
""" """
def __init__(self, path): def __init__(self, path):
self._city = None self._city = None
self._lod = 0 self._lod = None
self._lod1_tags = ['lod1Solid', 'lod1MultiSurface'] self._lod1_tags = ['lod1Solid', 'lod1MultiSurface']
self._lod2_tags = ['lod2Solid', 'lod2MultiSurface', 'lod2MultiCurve'] self._lod2_tags = ['lod2Solid', 'lod2MultiSurface', 'lod2MultiCurve']
self._lower_corner = None self._lower_corner = None

View File

@ -28,6 +28,7 @@ class TestConstructionFactory(TestCase):
file_path = (self._example_path / file).resolve() file_path = (self._example_path / file).resolve()
self._city = GeometryFactory('citygml', path=file_path).city self._city = GeometryFactory('citygml', path=file_path).city
self.assertIsNotNone(self._city, 'city is none') self.assertIsNotNone(self._city, 'city is none')
self.assertIsNotNone(self._city.level_of_detail.geometry, 'wrong construction level of detail')
return self._city return self._city
@staticmethod @staticmethod