MCPcopy Create free account
hub / github.com/comaps/comaps / GetLocalizedFeatureType

Function GetLocalizedFeatureType

libs/kml/type_utils.cpp:43–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43std::string GetLocalizedFeatureType(std::vector<uint32_t> const & types)
44{
45 if (types.empty())
46 return {};
47
48 auto const & c = classif();
49 auto const type = c.GetTypeForIndex(types.front());
50
51 return localisation::TranslatedFeatureType(c.GetReadableObjectName(type));
52}
53
54std::string GetPreferredBookmarkNameForKml(BookmarkData const & bmData)
55{

Calls 5

TranslatedFeatureTypeFunction · 0.85
frontMethod · 0.80
GetReadableObjectNameMethod · 0.80
emptyMethod · 0.45
GetTypeForIndexMethod · 0.45

Tested by

no test coverage detected