2020-06-16 15:26:55 -04:00
|
|
|
"""
|
|
|
|
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
|
|
|
|
"""
|
2020-06-16 16:19:14 -04:00
|
|
|
def __init__(self, lod, surfaces, name, feature_type, length):
|
|
|
|
super().__init__(lod, surfaces, name)
|
2020-06-16 15:26:55 -04:00
|
|
|
self._feature_type = feature_type
|
|
|
|
self._length = length
|
|
|
|
|
|
|
|
@property
|
|
|
|
def feature_type(self):
|
|
|
|
"""
|
|
|
|
Get type of bixi feature
|
|
|
|
:return: feature_type
|
|
|
|
"""
|
|
|
|
return self._feature_type
|
|
|
|
|
|
|
|
@property
|
|
|
|
def length(self):
|
|
|
|
"""
|
|
|
|
Get length of bixi feature in meters
|
|
|
|
:return: length
|
|
|
|
"""
|
|
|
|
return self._length
|