Toponaming: Transfer in getHigherElement
This commit is contained in:
@@ -269,7 +269,7 @@ const std::vector<std::string>& GeoFeature::searchElementCache(const std::string
|
||||
return none;
|
||||
}
|
||||
|
||||
std::vector<const char*> GeoFeature::getElementTypes(bool /*all*/) const
|
||||
const std::vector<const char*>& GeoFeature::getElementTypes(bool /*all*/) const
|
||||
{
|
||||
static std::vector<const char*> nil;
|
||||
auto prop = getPropertyOfGeometry();
|
||||
@@ -279,4 +279,13 @@ std::vector<const char*> GeoFeature::getElementTypes(bool /*all*/) const
|
||||
return prop->getComplexData()->getElementTypes();
|
||||
}
|
||||
|
||||
std::vector<Data::IndexedName>
|
||||
GeoFeature::getHigherElements(const char *element, bool silent) const
|
||||
{
|
||||
auto prop = getPropertyOfGeometry();
|
||||
if (!prop)
|
||||
return {};
|
||||
return prop->getComplexData()->getHigherElements(element, silent);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user