blob: c0bd718a722fcbd3a5012a02ba24ad25f04d7def (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#pragma once
#include "generator/cities_boundaries_builder.hpp"
#include "generator/feature_builder.hpp"
#include "generator/place.hpp"
#include "geometry/tree4d.hpp"
#include <memory>
#include <vector>
namespace generator
{
// The class CityBoundaryProcessor is responsible for the union of boundaries of the cities.
class CityBoundaryProcessor
{
public:
CityBoundaryProcessor(std::shared_ptr<OsmIdToBoundariesTable> boundariesTable);
void Add(feature::FeatureBuilder const & fb);
void Replace(feature::FeatureBuilder const & fb);
std::vector<feature::FeatureBuilder> GetFeatures() const;
private:
void UnionEqualPlacesIds(Place const & place);
std::shared_ptr<OsmIdToBoundariesTable> m_boundariesTable;
m4::Tree<Place> m_places;
};
} // namespace generator
|