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

Function PreprocessForWorldMap

generator/feature_merger.cpp:394–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392namespace feature
393{
394bool PreprocessForWorldMap(FeatureBuilder & fb)
395{
396 TypeCheckWorld checker;
397 if (fb.RemoveTypesIf(checker))
398 return false;
399
400 if (!checker.m_isRegion)
401 fb.RemoveNameIfInvisible(checker.m_lowScale, checker.m_upScale);
402
403 /// @todo Do we need all Metadata for point/area World features? We delete meta for linear in ZeroParams.
404
405 return true;
406}
407
408bool PreprocessForCountryMap(FeatureBuilder & fb)
409{

Callers 3

PushFeatureMethod · 0.85
operator()Method · 0.85
AddMethod · 0.85

Calls 2

RemoveTypesIfMethod · 0.80
RemoveNameIfInvisibleMethod · 0.80

Tested by 1

AddMethod · 0.68