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:
authorIlya Zverev <zverik@textual.ru>2016-05-23 16:59:16 +0300
committerIlya Zverev <zverik@textual.ru>2016-05-24 11:24:54 +0300
commit67eeacccc55594257c620e04a5c5299016ac6213 (patch)
treec12bc5c66f19f797cdef3f70f394cce9157df571 /indexer/feature_visibility.cpp
parent8640cfb195d3445d312e62e2f0d54fed3454165a (diff)
[bicycle] Add surface types and tests
Diffstat (limited to 'indexer/feature_visibility.cpp')
-rw-r--r--indexer/feature_visibility.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/indexer/feature_visibility.cpp b/indexer/feature_visibility.cpp
index 53db917f68..921b9131d6 100644
--- a/indexer/feature_visibility.cpp
+++ b/indexer/feature_visibility.cpp
@@ -208,21 +208,22 @@ namespace
/// Add here all exception classificator types: needed for algorithms,
/// but don't have drawing rules.
- bool TypeAlwaysExists(uint32_t t, EGeomType g = GEOM_UNDEFINED)
+ bool TypeAlwaysExists(uint32_t type, EGeomType g = GEOM_UNDEFINED)
{
- static const uint32_t s1 = classif().GetTypeByPath({ "junction", "roundabout" });
- static const uint32_t s2 = classif().GetTypeByPath({ "hwtag" });
+ static const uint32_t roundabout = classif().GetTypeByPath({ "junction", "roundabout" });
+ static const uint32_t hwtag = classif().GetTypeByPath({ "hwtag" });
+ static const uint32_t psurface = classif().GetTypeByPath({ "psurface" });
if (g == GEOM_LINE || g == GEOM_UNDEFINED)
{
- if (s1 == t)
+ if (roundabout == type)
return true;
- if (HasRoutingExceptionType(t))
+ if (HasRoutingExceptionType(type))
return true;
- ftype::TruncValue(t, 1);
- if (s2 == t)
+ ftype::TruncValue(type, 1);
+ if (hwtag == type || psurface == type)
return true;
}