| 240 | } |
| 241 | |
| 242 | void DataSource::ForEachFeatureIDInRect(FeatureIdCallback const & f, m2::RectD const & rect, int scale, |
| 243 | covering::CoveringMode mode /* = covering::ViewportWithLowLevels */) const |
| 244 | { |
| 245 | auto readFeatureId = [&f](uint32_t index, FeatureSource & src) |
| 246 | { |
| 247 | if (src.GetFeatureStatus(index) != FeatureStatus::Deleted) |
| 248 | f({src.GetMwmId(), index}); |
| 249 | }; |
| 250 | |
| 251 | ReadMWMFunctor readFunctor(*m_factory, readFeatureId); |
| 252 | ForEachInIntervals(readFunctor, mode, rect, scale); |
| 253 | } |
| 254 | |
| 255 | void DataSource::ForEachInRect(FeatureCallback const & f, m2::RectD const & rect, int scale) const |
| 256 | { |
no test coverage detected