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

Method IsGoodScale

generator/filter_world.cpp:45–52  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

43
44// static
45bool FilterWorld::IsGoodScale(feature::FeatureBuilder const & fb)
46{
47 // GetMinDrawableScale also checks suitable size for AREA features.
48 int const minScale = GetMinDrawableScale(fb.GetTypesHolder(), fb.GetLimitRect());
49
50 // Some features become invisible after merge processing, so -1 is possible.
51 return scales::GetUpperWorldScale() >= minScale && minScale != -1;
52}
53
54// static
55bool FilterWorld::IsPopularAttraction(feature::FeatureBuilder const & fb, std::string const & popularityFilename)

Callers

nothing calls this directly

Calls 4

GetMinDrawableScaleFunction · 0.85
GetUpperWorldScaleFunction · 0.85
GetTypesHolderMethod · 0.80
GetLimitRectMethod · 0.45

Tested by

no test coverage detected