erased self._buildings in city.py

This commit is contained in:
Pilar 2021-02-03 09:20:35 -05:00
parent 6f58fde55b
commit 2ef357b5d9

View File

@ -23,7 +23,6 @@ class City:
"""
def __init__(self, lower_corner, upper_corner, srs_name, buildings=None):
self._buildings = None
self._name = None
self._lower_corner = lower_corner
self._upper_corner = upper_corner
@ -194,6 +193,7 @@ class City:
"""
selected_region_lower_corner = [center[0] - radius, center[1] - radius, center[2] - radius]
selected_region_upper_corner = [center[0] + radius, center[1] + radius, center[2] + radius]
# todo, ask @Guille: does this create a new instance of city??
selected_region_city = City(selected_region_lower_corner, selected_region_upper_corner, srs_name=self.srs_name)
for city_object in self.city_objects:
location = city_object.location