Files
comaps/indexer/index_builder.hpp
Konstantin Pastbin e3e4a1985a Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run:
  git remote add om-historic [om-historic.git repo url]
  git fetch --tags om-historic
  git replace squashed-history historic-commits
2025-05-08 21:10:51 +07:00

27 lines
781 B
C++

#pragma once
#include "indexer/data_header.hpp"
#include "indexer/scale_index_builder.hpp"
#include <string>
namespace indexer
{
template <class TFeaturesVector, typename TWriter>
void BuildIndex(feature::DataHeader const & header, TFeaturesVector const & features,
TWriter & writer, std::string const & tmpFilePrefix)
{
LOG(LINFO, ("Building scale index."));
uint64_t indexSize;
{
SubWriter<TWriter> subWriter(writer);
covering::IndexScales(header, features, subWriter, tmpFilePrefix);
indexSize = subWriter.Size();
}
LOG(LINFO, ("Built scale index. Size =", indexSize));
}
// doesn't throw exceptions
bool BuildIndexFromDataFile(std::string const & dataFile, std::string const & tmpFile);
} // namespace indexer