static
| 57 | |
| 58 | // static |
| 59 | void 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 | |
| 75 | WikiDataFilter::WikiDataFilter(std::string const & path, std::vector<std::string> const & dataFiles) |
| 76 | : m_path(path) |
nothing calls this directly
no test coverage detected