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

Method IsAccepted

generator/filter_planet.cpp:10–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8}
9
10bool FilterPlanet::IsAccepted(OsmElement const & element) const
11{
12 if (element.IsRelation())
13 {
14 auto const type = element.GetTag("type");
15 return (type == "multipolygon" || type == "boundary");
16 }
17 if (element.IsNode())
18 return !element.m_tags.empty();
19
20 return true;
21}
22
23bool FilterPlanet::IsAccepted(feature::FeatureBuilder const & feature) const
24{

Callers

nothing calls this directly

Calls 6

IsRelationMethod · 0.80
GetTagMethod · 0.80
GetParamsMethod · 0.80
IsNodeMethod · 0.45
emptyMethod · 0.45
IsValidMethod · 0.45

Tested by

no test coverage detected