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 | |
parent | d7cad89f77c5184a3deb08dfb78acd93224bcf8f (diff) |
Added logging
-rw-r--r-- | generator/coastlines_generator.cpp | 4 | ||||
-rw-r--r-- | generator/feature_generator.cpp | 7 | ||||
-rw-r--r-- | map/framework.cpp | 1 |
3 files changed, 6 insertions, 6 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; diff --git a/map/framework.cpp b/map/framework.cpp index 98ef29453c..7aba4d346e 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -53,7 +53,6 @@ void Framework<TModel>::RemoveMap(string const & datFile) template <typename TModel> void Framework<TModel>::OnGpsUpdate(location::GpsInfo const & info) { - LOG(LINFO, (info.m_status)); // notify GUI (note that gps can be disabled by user or even not available) if (!(m_locationState & location::State::EGps) && m_locationObserver) m_locationObserver(info.m_status); |