diff options
author | vng <viktor.govako@gmail.com> | 2012-09-19 17:33:23 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:43:21 +0300 |
commit | 5b1b472957a72620f4ab1e2aa488f67c983dbc06 (patch) | |
tree | 6b96bd7016845efb8e6ec83497944682eea90499 /indexer/feature_visibility.hpp | |
parent | ac18079c373264ce6f3d11a448165ae06d67b463 (diff) |
Fix feature's types while generating. Do not include non-drawable types for POINT, LINEAR and AREA geometry types.
Diffstat (limited to 'indexer/feature_visibility.hpp')
-rw-r--r-- | indexer/feature_visibility.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indexer/feature_visibility.hpp b/indexer/feature_visibility.hpp index b4ba4c5f77..6f3fea925c 100644 --- a/indexer/feature_visibility.hpp +++ b/indexer/feature_visibility.hpp @@ -19,13 +19,16 @@ namespace feature enum FeatureGeoType { FEATURE_TYPE_POINT = 0, FEATURE_TYPE_LINE = 1, - FEATURE_TYPE_AREA = 2 + FEATURE_TYPE_AREA = 2, + FEATURE_TYPE_LINE_AREA = 3 }; bool IsDrawableAny(uint32_t type); - bool IsDrawableLike(vector<uint32_t> const & type, FeatureGeoType ft); + bool IsDrawableLike(vector<uint32_t> const & types, FeatureGeoType ft); bool IsDrawableForIndex(FeatureBase const & f, int level); + bool RemoveNoDrawableTypes(vector<uint32_t> & types, FeatureGeoType ft); + int GetMinDrawableScale(FeatureBase const & f); /// @return [-1, -1] if no any text exists |