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>2014-09-16 15:19:01 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:27:11 +0300
commit26a50dea3ad38596c485a4c600ba2d58659bfdf7 (patch)
tree204eca44dda5f4785a3c34d2fbe8b7505f1493a2 /indexer/feature_data.cpp
parentce32dfb4ba33084a495374cf74c29d459fcbc570 (diff)
[generator][classificator] Factor out additional tags for highways as the separate node in classificator:
- hwtag=oneway - hwtag=private - hwtag=lit
Diffstat (limited to 'indexer/feature_data.cpp')
-rw-r--r--indexer/feature_data.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/indexer/feature_data.cpp b/indexer/feature_data.cpp
index 42752de21b..5009ee23b6 100644
--- a/indexer/feature_data.cpp
+++ b/indexer/feature_data.cpp
@@ -56,20 +56,16 @@ public:
{
char const * arr1[][1] = {
{ "building" },
- { "oneway" },
- { "lit" },
+ { "hwtag" },
{ "internet_access" },
};
- char const * arr2[][2] = {
- { "internet_access", "wlan"},
- };
AddTypes(arr1);
- AddTypes(arr2);
}
bool operator() (uint32_t t) const
{
+ ftype::TruncValue(t, 1);
return (find(m_types.begin(), m_types.end(), t) != m_types.end());
}
};
@@ -308,13 +304,6 @@ bool FeatureParams::IsTypeExist(uint32_t t) const
return (find(m_Types.begin(), m_Types.end(), t) != m_Types.end());
}
-bool FeatureParams::operator == (FeatureParams const & rhs) const
-{
- return (FeatureParamsBase::operator ==(rhs) &&
- m_Types == rhs.m_Types &&
- GetGeomType() == rhs.GetGeomType());
-}
-
bool FeatureParams::CheckValid() const
{
CHECK(!m_Types.empty() && m_Types.size() <= max_types_count, ());