diff --git a/geometry/geometry_factory.py b/geometry/geometry_factory.py index 36cdf4db..d672e501 100644 --- a/geometry/geometry_factory.py +++ b/geometry/geometry_factory.py @@ -4,7 +4,9 @@ SPDX - License - Identifier: LGPL - 3.0 - or -later Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca """ from city_model_structure.city import City +from city_model_structure.city_object import CityObject from geometry.geometry_feeders.city_gml import CityGml +from geometry.geometry_feeders.osm_subway import OsmSubway class GeometryFactory: @@ -34,3 +36,15 @@ class GeometryFactory: :return: City """ return getattr(self, self._file_type, lambda: None) + + @property + def _osm_subway(self): + return OsmSubway(self._path) + + @property + def features(self) -> [CityObject]: + """ + Load the city model structure from a geometry source + :return: [CityObject] + """ + return getattr(self, self._file_type, lambda: None)