diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2011-09-08 19:01:12 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:23:26 +0300 |
commit | 74a927be6ce0efdeefdbacf8069986cf98907821 (patch) | |
tree | cb336091598c820eda852055403e40ab930f9758 /generator | |
parent | d7cad89f77c5184a3deb08dfb78acd93224bcf8f (diff) |
Added logging
Diffstat (limited to 'generator')
-rw-r--r-- | generator/coastlines_generator.cpp | 4 | ||||
-rw-r--r-- | generator/feature_generator.cpp | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/generator/coastlines_generator.cpp b/generator/coastlines_generator.cpp index f1c4c40c88..0bdc73d8f6 100644 --- a/generator/coastlines_generator.cpp +++ b/generator/coastlines_generator.cpp @@ -97,6 +97,8 @@ namespace { if (fb.IsGeometryClosed()) m_rMain.AddRegionToTree(fb); + else + LOG(LINFO, ("Not merged coastline", fb)); } }; } @@ -180,7 +182,7 @@ namespace } bool CoastlineFeaturesGenerator::GetFeature(size_t i, FeatureBuilder1 & fb) -{ +{ // get rect cell CellIdT cell = CellIdT::FromBitsAndLevel(i, m_Level); double minX, minY, maxX, maxY; diff --git a/generator/feature_generator.cpp b/generator/feature_generator.cpp index 6df1d473e0..434634d32c 100644 --- a/generator/feature_generator.cpp +++ b/generator/feature_generator.cpp @@ -264,10 +264,8 @@ public: : m_countries(info) { { - vector<string> path; - path.push_back("natural"); - path.push_back("coastline"); - m_coastType = classif().GetTypeByPath(path); + static char const * path[] = {"natural", "coastline"}; + m_coastType = classif().GetTypeByPath(vector<string>(path, path + 2)); } if (info.m_createWorld) @@ -306,6 +304,7 @@ public: m_coasts->Finish(); size_t const count = m_coasts->GetFeaturesCount(); + LOG(LINFO, ("Generating coastline polygons", count)); for (size_t i = 0; i < count; ++i) { FeatureBuilder1 fb; |