[generator] Less bits for Point -> int64 coding when comparing points and merging linear features in World.mwm (according to upper world scale).

This commit is contained in:
vng 2013-05-28 17:54:14 +03:00 committed by Alex Zolotarev
parent 3ef39a7e9d
commit 95ba1ccc37

View file

@ -48,7 +48,8 @@ class WorldMapGenerator
public:
template <class TInfo>
explicit WorldMapGenerator(TInfo const & info)
: m_worldBucket(info), m_merger(POINT_COORD_BITS)
: m_worldBucket(info),
m_merger(POINT_COORD_BITS - (scales::GetUpperScale() - scales::GetUpperWorldScale()) / 2)
{
// Do not strip last types for given tags,
// for example, do not cut 'admin_level' in 'boundary-administrative-XXX'.