diff options
author | Sergey Yershov <yershov@corp.mail.ru> | 2015-07-28 16:54:55 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:58:24 +0300 |
commit | f911cf58e14bfe5585dd186e6524b90cb8e79c42 (patch) | |
tree | 03285e4c9cdeec2ac159c63177608c788454010c /generator | |
parent | 3cef8ffe6ab5b0860a2ff599321ddfb5f525a45d (diff) |
Code fix
Diffstat (limited to 'generator')
-rw-r--r-- | generator/world_map_generator.hpp | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/generator/world_map_generator.hpp b/generator/world_map_generator.hpp index 45dce6171c..740342400e 100644 --- a/generator/world_map_generator.hpp +++ b/generator/world_map_generator.hpp @@ -7,8 +7,6 @@ #include "indexer/scales.hpp" -#include "coding/file_name_utils.hpp" - #include "base/logging.hpp" #include "defines.hpp" @@ -99,7 +97,7 @@ public: m_tree.ForEachInRect(r, [&](size_t index) { ++m_selectedPolygons; - hits[i] += m_waterRegions[index].Contains(pts[i]) ? 1 : 0; + hits[i] += m_waterRegions[index].Contains(p) ? 1 : 0; }); } @@ -194,27 +192,6 @@ public: char const * arr2[] = {"boundary", "administrative", "4", "state"}; m_typesCorrector.SetDontNormalizeType(arr2); - - /// @todo It's not obvious to integrate link->way conversion. - /// Review it in future. - /* - char const * arr3[][2] = { - { "highway", "motorway_link" }, - { "highway", "primary_link" }, - { "highway", "secondary_link" }, - { "highway", "trunk_link" } - }; - char const * arr4[][2] = { - { "highway", "motorway" }, - { "highway", "primary" }, - { "highway", "secondary" }, - { "highway", "trunk" } - }; - STATIS_ASSERT(ARRAY_SIZE(arr3) == ARRAY_SIZE(arr4)); - - for (size_t i = 0; i < ARRAY_SIZE(arr3); ++i) - m_typesCorrector.SetMappingTypes(arr3[i], arr4[i]); - */ } void operator()(FeatureBuilder1 fb) |