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>2013-09-25 15:14:29 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:02:42 +0300
commit6766d52a7b13556b4d8af2f50ea7817b924e4f99 (patch)
tree64d78cc19dceee5fa40ad2ba38e07762895086ee /map/feature_vec_model.cpp
parent0b5feff580e34e7d1f2720114e2a16d2760463dc (diff)
Old apps can read header and skip mwm's with new data format, since now.
Diffstat (limited to 'map/feature_vec_model.cpp')
-rw-r--r--map/feature_vec_model.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/map/feature_vec_model.cpp b/map/feature_vec_model.cpp
index 537117641d..958394e8b1 100644
--- a/map/feature_vec_model.cpp
+++ b/map/feature_vec_model.cpp
@@ -35,14 +35,16 @@ void FeaturesFetcher::InitClassificator()
int FeaturesFetcher::AddMap(string const & file)
{
int version = -1;
+
try
{
m2::RectD r;
version = m_multiIndex.Add(file, r);
- // For debug purposes - add rect for countries only (press 'A' in map view).
- //if (file.find("World") == string::npos)
+ if (version != -1)
m_rect.Add(r);
+ else
+ LOG(LWARNING, ("Can't add map", file, "Probably it's already added or has newer data version."));
}
catch (RootException const & e)
{