| 44 | } |
| 45 | |
| 46 | void CountryInfoReader::LoadRegionsFromDisk(size_t id, std::vector<m2::RegionD> & regions) const |
| 47 | { |
| 48 | regions.clear(); |
| 49 | ReaderSource<ModelReaderPtr> src(m_reader->GetReader(strings::to_string(id))); |
| 50 | |
| 51 | uint32_t const count = ReadVarUint<uint32_t>(src); |
| 52 | for (size_t i = 0; i < count; ++i) |
| 53 | { |
| 54 | std::vector<m2::PointD> points; |
| 55 | serial::LoadOuterPath(src, serial::GeometryCodingParams(), points); |
| 56 | regions.emplace_back(std::move(points)); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | bool CountryInfoReader::BelongsToRegion(m2::PointD const & pt, size_t id) const |
| 61 | { |
nothing calls this directly
no test coverage detected