[generator][python] Fixed build after pr #13653.

This commit is contained in:
Maksim Andrianov 2020-10-19 20:48:10 +03:00 committed by Victor Popov
parent 2471dcee19
commit 3dc1c7f326
6 changed files with 0 additions and 17 deletions

View file

@ -89,7 +89,6 @@ def example__working_with_features(path):
print("population:", ft.population())
print("road_number:", ft.road_number())
print("house_number:", ft.house_number())
print("postcode:", ft.postcode())
print("layer:", ft.layer())
print("geom_type:", ft.geom_type())
print("center:", ft.center())

View file

@ -95,8 +95,6 @@ public:
std::string GetHouseNumber() { return m_feature->GetHouseNumber(); }
std::string GetPostcode() { return m_feature->GetPostcode(); }
int8_t GetLayer() { return m_feature->GetLayer(); }
GeomType GetGeomType() { return m_feature->GetGeomType(); }
@ -146,7 +144,6 @@ public:
GetPopulation();
GetRoadNumber();
GetHouseNumber();
GetPostcode();
GetLayer();
GetGeomType();
GetGeometry();
@ -393,7 +390,6 @@ BOOST_PYTHON_MODULE(pygen)
.def("population", &FeatureTypeWrapper::GetPopulation)
.def("road_number", &FeatureTypeWrapper::GetRoadNumber)
.def("house_number", &FeatureTypeWrapper::GetHouseNumber)
.def("postcode", &FeatureTypeWrapper::GetPostcode)
.def("layer", &FeatureTypeWrapper::GetLayer)
.def("geom_type", &FeatureTypeWrapper::GetGeomType)
.def("center", &FeatureTypeWrapper::GetCenter)

View file

@ -342,10 +342,6 @@ class Feature(ABC):
def house_number(self) -> str:
pass
@abstractmethod
def postcode(self) -> str:
pass
@abstractmethod
def layer(self) -> int:
pass
@ -405,7 +401,6 @@ class Feature(ABC):
"population": self.population(),
"road_number": self.road_number(),
"house_number": self.house_number(),
"postcode": self.postcode(),
"layer": self.layer(),
"geom_type": self.geom_type(),
"center": center,

View file

@ -94,9 +94,6 @@ class FeaturePygen(mi.Feature):
def house_number(self) -> str:
return self.ft.house_number()
def postcode(self) -> str:
return self.ft.postcode()
def layer(self) -> int:
return self.ft.layer()

View file

@ -228,9 +228,6 @@ class FeaturePython(mi.Feature):
def limit_rect(self) -> mi.Rect:
logger.warn("Method limit_rect() does not have an implementation.")
def postcode(self) -> str:
logger.warn("Method postcode() does not have an implementation.")
def index(self) -> int:
return self._index

View file

@ -90,7 +90,6 @@ def example__working_with_features(path):
print("population:", ft.population())
print("road_number:", ft.road_number())
print("house_number:", ft.house_number())
print("postcode:", ft.postcode())
print("layer:", ft.layer())
print("geom_type:", ft.geom_type())
print("center:", ft.center())