hub/city_model_structure/bixi_feature.py
pilar c764c96deb added "residential" type to us_to_library_types.py
added building_type = "residential" to us_archetypes.xml
20 buildings example returns geometrical errors in third building
2020-06-22 14:34:29 -04:00

33 lines
771 B
Python

"""
bixi_feature module
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
"""
from city_model_structure.city_object import CityObject
class BixiFeature(CityObject):
"""
BixiFeature(CityObject) class
"""
def __init__(self, lod, surfaces, name, feature_type, coordinates):
super().__init__(lod, surfaces, name)
self._feature_type = feature_type
self._coordinates = coordinates
@property
def feature_type(self):
"""
Get type of bixi feature
:return: feature_type
"""
return self._feature_type
@property
def gps_coordinates(self):
"""
Get bixi feature coordinates
:return: [x, y, z]
"""
return self._coordinates