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

Function IsDrawableForIndexGeometryOnly

libs/indexer/feature_visibility.cpp:230–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228namespace
229{
230bool IsDrawableForIndexGeometryOnly(TypesHolder const & types, m2::RectD const & limitRect, int level)
231{
232 Classificator const & c = classif();
233
234 static uint32_t const buildingPartType = c.GetTypeByPath({"building:part"});
235
236 // Exclude too small area features unless it's a part of a coast or a building.
237 if (types.GetGeomType() == GeomType::Area && !types.Has(c.GetCoastType()) && !types.Has(buildingPartType) &&
238 !scales::IsGoodForLevel(level, limitRect))
239 return false;
240
241 return true;
242}
243
244bool IsDrawableForIndexClassifOnly(TypesHolder const & types, int level)
245{

Callers 2

IsDrawableForIndexFunction · 0.85

Calls 6

IsGoodForLevelFunction · 0.85
GetTypeByPathMethod · 0.80
GetCoastTypeMethod · 0.80
TypesHolderClass · 0.70
GetGeomTypeMethod · 0.45
HasMethod · 0.45

Tested by

no test coverage detected