system_assignation/city_model_structure/bixi_feature.py

33 lines
758 B
Python
Raw Normal View History

"""
bixi_feature module
SPDX - License - Identifier: LGPL - 3.0 - or -later
2020-11-26 09:26:55 -05:00
Copyright © 2020 Project Author Pilar Monsalvete pilar_monsalvete@yahoo.es
"""
from city_model_structure.city_object import CityObject
class BixiFeature(CityObject):
"""
BixiFeature(CityObject) class
"""
2020-06-22 13:26:50 -04:00
def __init__(self, lod, surfaces, name, feature_type, coordinates):
super().__init__(lod, surfaces, name)
self._feature_type = feature_type
2020-06-22 13:26:50 -04:00
self._coordinates = coordinates
@property
def feature_type(self):
"""
Get type of bixi feature
:return: feature_type
"""
return self._feature_type
@property
2020-06-22 13:26:50 -04:00
def gps_coordinates(self):
"""
2020-06-22 13:26:50 -04:00
Get bixi feature coordinates
:return: [x, y, z]
"""
2020-06-22 13:26:50 -04:00
return self._coordinates