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:
authorvng <viktor.govako@gmail.com>2011-09-16 20:16:04 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:23:56 +0300
commit160e5ced67c6499188b81513f174f08c26ee9de0 (patch)
treeb11c2c89394c5bcfb164274f653be466f3ffc3a0 /indexer/data_header.cpp
parent75daa7a5c7ae5272815ff11ddb586aa14bb28c4e (diff)
[Reduce mwm size] Add dynamic serial::CodingParams (coordinate bits) for different scale levels.
Diffstat (limited to 'indexer/data_header.cpp')
-rw-r--r--indexer/data_header.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indexer/data_header.cpp b/indexer/data_header.cpp
index 5b1c822e32..18b03dff0a 100644
--- a/indexer/data_header.cpp
+++ b/indexer/data_header.cpp
@@ -15,6 +15,12 @@
namespace feature
{
+ serial::CodingParams DataHeader::GetCodingParams(int scaleIndex) const
+ {
+ return serial::CodingParams(m_codingParams.GetCoordBits() - (m_scales[3] - m_scales[scaleIndex]),
+ m_codingParams.GetBasePointUint64());
+ }
+
m2::RectD const DataHeader::GetBounds() const
{
return Int64ToRect(m_bounds, m_codingParams.GetCoordBits());