diff options
author | vng <viktor.govako@gmail.com> | 2015-11-26 14:59:49 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:02:56 +0300 |
commit | 64fae3de6227ec8b93afaa78d173e01f7f020d5e (patch) | |
tree | cfb6845741840a016efe90de6d5102f2c53b5194 | |
parent | 152d9f47a838a4584a1216bc5ce994cff575ae43 (diff) |
Simplified FeatureType debug output.
-rw-r--r-- | indexer/feature.cpp | 34 |
1 files changed, 6 insertions, 28 deletions
diff --git a/indexer/feature.cpp b/indexer/feature.cpp index d8791ba72d..d8a99a57d1 100644 --- a/indexer/feature.cpp +++ b/indexer/feature.cpp @@ -1,7 +1,9 @@ #include "indexer/feature.hpp" -#include "indexer/feature_visibility.hpp" -#include "indexer/feature_loader_base.hpp" + #include "indexer/classificator.hpp" +#include "indexer/feature_algo.hpp" +#include "indexer/feature_loader_base.hpp" +#include "indexer/feature_visibility.hpp" #include "geometry/distance.hpp" #include "geometry/robust_orientation.hpp" @@ -162,32 +164,8 @@ namespace string FeatureType::DebugString(int scale) const { - ParseAll(scale); - - string s = base_type::DebugString(); - - switch (GetFeatureType()) - { - case GEOM_POINT: - s += (" Center:" + DebugPrint(m_center)); - break; - - case GEOM_LINE: - s += " Points:"; - Points2String(s, m_points); - break; - - case GEOM_AREA: - s += " Triangles:"; - Points2String(s, m_triangles); - break; - - case GEOM_UNDEFINED: - ASSERT(false, ("Assume that we have valid feature always")); - break; - } - - return s; + return base_type::DebugString() + "; Center = " + + DebugPrint(MercatorBounds::ToLatLon(feature::GetCenter(*this, scale))); } string DebugPrint(FeatureType const & ft) |