| 15 | using namespace feature; |
| 16 | |
| 17 | void PrintFileContainerStats(std::ostream & os, std::string const & fPath) |
| 18 | { |
| 19 | os << "File section sizes\n"; |
| 20 | try |
| 21 | { |
| 22 | FilesContainerR cont(fPath); |
| 23 | cont.ForEachTag([&](FilesContainerR::Tag const & tag) |
| 24 | { os << std::setw(18) << tag << " : " << std::setw(10) << cont.GetReader(tag).Size() << "\n"; }); |
| 25 | } |
| 26 | catch (Reader::Exception const & ex) |
| 27 | { |
| 28 | LOG(LWARNING, ("Error reading file:", fPath, ex.Msg())); |
| 29 | } |
| 30 | os << "\n"; |
| 31 | } |
| 32 | |
| 33 | // 0.001 deg² ≈ 12.392 km² * cos(lat) |
| 34 | static constexpr double kAreas[] = {10, 20, 50, 100, 200, 500, 1000, 5000, 360 * 360 * 12400}; |
no test coverage detected