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>2011-01-06 22:56:36 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:09:18 +0300
commiteffddd5ed3a1080a0b3f1605d954bd0c914c9f91 (patch)
tree49c18ac30e4f0fd785e20ac41ccffd53153fe046 /indexer/feature_processor.hpp
parent29fad748ac0872c398802e3d9e4ae467f2093713 (diff)
- Geometry and Triangles simplification in features.
- Store Geometry and Triangles in different files of files-container for each scale range. - Make small epsilon for simplification. Remark: map_tests doesn't work
Diffstat (limited to 'indexer/feature_processor.hpp')
-rw-r--r--indexer/feature_processor.hpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/indexer/feature_processor.hpp b/indexer/feature_processor.hpp
index e9e09fe00d..f2cbcf443a 100644
--- a/indexer/feature_processor.hpp
+++ b/indexer/feature_processor.hpp
@@ -19,11 +19,11 @@ namespace feature
/// Read feature from feature source.
template <class TSource>
- void ReadFromSource(TSource & src, FeatureGeom & f, typename FeatureGeom::read_source_t & buffer)
+ void ReadFromSourceRowFormat(TSource & src, FeatureBuilder1 & f)
{
uint32_t const sz = ReadVarUint<uint32_t>(src);
- buffer.m_data.resize(sz);
- src.Read(&buffer.m_data[0], sz);
+ typename FeatureBuilder1::buffer_t buffer(sz);
+ src.Read(&buffer[0], sz);
f.Deserialize(buffer);
}
@@ -41,11 +41,10 @@ namespace feature
uint64_t const fSize = reader.Size();
// read features one by one
- typename FeatureGeom::read_source_t buffer;
while (currPos < fSize)
{
- FeatureGeom f;
- ReadFromSource(src, f, buffer);
+ FeatureBuilder1 f;
+ ReadFromSourceRowFormat(src, f);
toDo(f, currPos);
currPos = src.Pos();
}