gpandas added in factory

This commit is contained in:
home-imac 2022-11-13 21:07:04 -05:00
parent de449edc76
commit 3568255c29

View File

@ -10,6 +10,7 @@ from imports.geometry.citygml import CityGml
from imports.geometry.obj import Obj from imports.geometry.obj import Obj
from imports.geometry.osm_subway import OsmSubway from imports.geometry.osm_subway import OsmSubway
from imports.geometry.rhino import Rhino from imports.geometry.rhino import Rhino
from imports.geometry.gpandas import GPandas
class GeometryFactory: class GeometryFactory:
@ -36,6 +37,15 @@ class GeometryFactory:
""" """
return Obj(self._path).city return Obj(self._path).city
@property
def _gpandas(self) -> City:
"""
Enrich the city by using GeoPandas information as data source
:return: City
"""
return GPandas(self._path).city
@property @property
def _osm_subway(self) -> City: def _osm_subway(self) -> City:
""" """