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

Class TypeCheckCountry

generator/feature_merger.cpp:369–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367};
368
369class TypeCheckCountry : public TypeCheckBase
370{
371public:
372 TypeCheckCountry() : TypeCheckBase(scales::GetUpperWorldScale() + 1, scales::GetUpperStyleScale()) {}
373
374 /// @return true If |type| should be removed.
375 bool operator()(uint32_t type) const
376 {
377 // Do not keep place=region in countries.
378 if (type == GetRegionType())
379 return true;
380
381 auto const range = GetScaleRange(type);
382
383 // Don't remove non-drawable types here, since this case is processed before
384 // feature::TypeAlwaysExists or FeatureBuilder::RemoveInvalidTypes.
385 if (IsEmptyRange(range))
386 return false;
387
388 return IsBadRange(range);
389 }
390};
391
392namespace feature
393{

Callers 1

PreprocessForCountryMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected