From cae22102c9a58af0f644f7e32bc63ced84709f66 Mon Sep 17 00:00:00 2001 From: guille Date: Tue, 8 Jun 2021 11:41:45 -0400 Subject: [PATCH] Remove useless debug code --- imports/geometry/citygml.py | 4 ---- non_functional_tests/test_geometry_factory.py | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/imports/geometry/citygml.py b/imports/geometry/citygml.py index b75f9272..f6d170bb 100644 --- a/imports/geometry/citygml.py +++ b/imports/geometry/citygml.py @@ -104,14 +104,10 @@ class CityGml: if self._city is None: self._city = City(self._lower_corner, self._upper_corner, self._srs_name) - i = 0 for o in self._gml['CityModel']['cityObjectMember']: - i += 1 city_object = o['Building'] if 'consistsOfBuildingPart' in city_object: self._city.add_city_objects_cluster(self._create_parts_consisting_building(city_object)) else: self._city.add_city_object(self._create_building(city_object)) - if i < 4: - break return self._city diff --git a/non_functional_tests/test_geometry_factory.py b/non_functional_tests/test_geometry_factory.py index dd049137..cf9e74ce 100644 --- a/non_functional_tests/test_geometry_factory.py +++ b/non_functional_tests/test_geometry_factory.py @@ -51,7 +51,7 @@ class TestGeometryFactory(TestCase): # citygml_classes def test_stuttgart_gml(self): - file = 'concordia.gml' + file = 'ConcordiaSWGcampus.gml' city = self._get_citygml(file) print(f'city name: {city}') for building in city.buildings: