Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaksim Andrianov <maksimandrianov1@gmail.com>2019-05-22 13:18:04 +0300
committergmoryes <gmoryes@gmail.com>2019-05-22 15:51:54 +0300
commit98045752e4c87c0714c2a6619591eee9e069c0a2 (patch)
treefe0734f9f2f99e4948372bb2632428b6b43e2ecd /generator
parent452c372bfd643a6811f2389a92788a6b0bb0f714 (diff)
[generator] Fixed Polygonizer with one output file.
Diffstat (limited to 'generator')
-rw-r--r--generator/polygonizer.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/generator/polygonizer.hpp b/generator/polygonizer.hpp
index 06674a0a3b..06b282dfb5 100644
--- a/generator/polygonizer.hpp
+++ b/generator/polygonizer.hpp
@@ -9,6 +9,7 @@
#include <memory>
#include <string>
+#include <utility>
#include <vector>
namespace feature
@@ -30,7 +31,12 @@ public:
{
// Insert fake country polygon equal to whole world to
// create only one output file which contains all features.
- m_countries.Add(borders::CountryPolygons(info.m_fileName), MercatorBounds::FullRect());
+ auto const rect = MercatorBounds::FullRect();
+ auto countries = borders::CountryPolygons(info.m_fileName);
+ std::vector<m2::PointD> points {rect.LeftBottom(), rect.LeftTop(), rect.RightTop(),
+ rect.RightBottom(), rect.LeftBottom()};
+ countries.m_regions.Add(m2::RegionD(std::move(points)), rect);
+ m_countries.Add(std::move(countries), rect);
}
}