test geometry update
This commit is contained in:
parent
6eb9c9112d
commit
924f15169e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user