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

Method DumpOne

generator/wiki_url_dumper.cpp:59–73  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

57
58// static
59void WikiUrlDumper::DumpOne(std::string const & path, std::ostream & stream)
60{
61 // auto const & needWikiUrl = ftypes::IsPartOfTourismAttractionsChecker::Instance();
62 feature::ForEachFeatureRawFormat(path, [&](FeatureBuilder const & feature, uint64_t /* pos */)
63 {
64 // if (!needWikiUrl(feature.GetTypesHolder()))
65 // return;
66
67 auto const wikiUrl = feature.GetMetadata().GetWikiURL();
68 if (wikiUrl.empty())
69 return;
70
71 stream << path << "\t" << feature.GetMostGenericOsmId() << "\t" << wikiUrl << "\n";
72 });
73}
74
75WikiDataFilter::WikiDataFilter(std::string const & path, std::vector<std::string> const & dataFiles)
76 : m_path(path)

Callers

nothing calls this directly

Calls 5

ForEachFeatureRawFormatFunction · 0.85
GetWikiURLMethod · 0.80
GetMostGenericOsmIdMethod · 0.80
GetMetadataMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected