forked from s_ranjbar/city_retrofit
Remove useless debug code
This commit is contained in:
parent
47c4cbed65
commit
cae22102c9
|
@ -104,14 +104,10 @@ class CityGml:
|
||||||
|
|
||||||
if self._city is None:
|
if self._city is None:
|
||||||
self._city = City(self._lower_corner, self._upper_corner, self._srs_name)
|
self._city = City(self._lower_corner, self._upper_corner, self._srs_name)
|
||||||
i = 0
|
|
||||||
for o in self._gml['CityModel']['cityObjectMember']:
|
for o in self._gml['CityModel']['cityObjectMember']:
|
||||||
i += 1
|
|
||||||
city_object = o['Building']
|
city_object = o['Building']
|
||||||
if 'consistsOfBuildingPart' in city_object:
|
if 'consistsOfBuildingPart' in city_object:
|
||||||
self._city.add_city_objects_cluster(self._create_parts_consisting_building(city_object))
|
self._city.add_city_objects_cluster(self._create_parts_consisting_building(city_object))
|
||||||
else:
|
else:
|
||||||
self._city.add_city_object(self._create_building(city_object))
|
self._city.add_city_object(self._create_building(city_object))
|
||||||
if i < 4:
|
|
||||||
break
|
|
||||||
return self._city
|
return self._city
|
||||||
|
|
|
@ -51,7 +51,7 @@ class TestGeometryFactory(TestCase):
|
||||||
|
|
||||||
# citygml_classes
|
# citygml_classes
|
||||||
def test_stuttgart_gml(self):
|
def test_stuttgart_gml(self):
|
||||||
file = 'concordia.gml'
|
file = 'ConcordiaSWGcampus.gml'
|
||||||
city = self._get_citygml(file)
|
city = self._get_citygml(file)
|
||||||
print(f'city name: {city}')
|
print(f'city name: {city}')
|
||||||
for building in city.buildings:
|
for building in city.buildings:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user